/external/skqp/tests/ |
D | GrContextFactoryTest.cpp | 55 if (!info1.grContext()) { in DEF_GPUTEST() 60 info1.grContext()->ref(); in DEF_GPUTEST() 65 REPORTER_ASSERT(reporter, info2.grContext()); in DEF_GPUTEST() 68 REPORTER_ASSERT(reporter, info1.grContext() != info2.grContext()); in DEF_GPUTEST() 71 info1.grContext()->unref(); in DEF_GPUTEST() 80 if (!info1.grContext()) { in DEF_GPUTEST() 85 info1.grContext()->ref(); in DEF_GPUTEST() 89 ContextInfo info2 = testFactory.getSharedContextInfo(info1.grContext()); in DEF_GPUTEST() 90 REPORTER_ASSERT(reporter, !info2.grContext()); in DEF_GPUTEST() 91 info1.grContext()->unref(); in DEF_GPUTEST() [all …]
|
D | SurfaceTest.cpp | 88 SkSurface::MakeRenderTarget(ctxInfo.grContext(), SkBudgeted::kNo, info)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 97 bool can = ctxInfo.grContext()->colorTypeSupportedAsSurface(colorType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 98 auto surf = SkSurface::MakeRenderTarget(ctxInfo.grContext(), SkBudgeted::kYes, info, 1, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 103 auto* gpu = ctxInfo.grContext()->contextPriv().getGpu(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 106 surf = SkSurface::MakeFromBackendTexture(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 112 surf = SkSurface::MakeFromBackendTextureAsRenderTarget(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 119 ctxInfo.grContext()->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 126 can = ctxInfo.grContext()->maxSurfaceSampleCountForColorType(colorType) >= kSampleCnt; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 127 surf = SkSurface::MakeRenderTarget(ctxInfo.grContext(), SkBudgeted::kYes, info, kSampleCnt, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 134 surf = SkSurface::MakeFromBackendTexture(ctxInfo.grContext(), backendTex, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | TestTest.cpp | 27 REPORTER_ASSERT(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 34 REPORTER_ASSERT(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 41 REPORTER_ASSERT(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
|
D | ResourceAllocatorTest.cpp | 141 const GrCaps* caps = ctxInfo.grContext()->contextPriv().caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 142 GrProxyProvider* proxyProvider = ctxInfo.grContext()->contextPriv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 143 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 188 int k2 = ctxInfo.grContext()->contextPriv().caps()->getRenderTargetSampleCount( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 190 int k4 = ctxInfo.grContext()->contextPriv().caps()->getRenderTargetSampleCount( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 243 GrSurfaceProxy* p1 = make_backend(ctxInfo.grContext(), t[0].fP1, &backEndTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 251 cleanup_backend(ctxInfo.grContext(), backEndTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 270 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 271 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 322 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ProxyTest.cpp | 108 GrProxyProvider* proxyProvider = ctxInfo.grContext()->contextPriv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 109 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 110 const GrCaps& caps = *ctxInfo.grContext()->contextPriv().caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 213 GrProxyProvider* proxyProvider = ctxInfo.grContext()->contextPriv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 214 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 215 GrGpu* gpu = ctxInfo.grContext()->contextPriv().getGpu(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 216 const GrCaps& caps = *ctxInfo.grContext()->contextPriv().caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 227 if (ctxInfo.grContext()->colorTypeSupportedAsSurface(colorType)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 350 GrProxyProvider* provider = ctxInfo.grContext()->contextPriv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 368 ctxInfo.grContext()->contextPriv().caps()->getBackendFormatFromColorType( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | FloatingPointTextureTest.cpp | 72 runFPTest<float>(reporter, ctxInfo.grContext(), FLT_MIN, FLT_MAX, FLT_EPSILON, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 runFPTest<float>(reporter, ctxInfo.grContext(), FLT_MIN, FLT_MAX, FLT_EPSILON, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 89 runFPTest<SkHalf>(reporter, ctxInfo.grContext(), SK_HalfMin, SK_HalfMax, SK_HalfEpsilon, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 97 runFPTest<SkHalf>(reporter, ctxInfo.grContext(), SK_HalfMin, SK_HalfMax, SK_HalfEpsilon, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | SurfaceSemaphoreTest.cpp | 73 GrContext* childCtx = childInfo.grContext(); in draw_child() 112 GrContext* mainCtx = mainInfo.grContext(); in surface_semaphore_test() 198 if (ctxInfo.grContext()) { in DEF_GPUTEST() 200 factory.getSharedContextInfo(ctxInfo.grContext(), 0); in DEF_GPUTEST() 202 factory.getSharedContextInfo(ctxInfo.grContext(), 1); in DEF_GPUTEST() 203 if (!child1.grContext() || !child2.grContext()) { in DEF_GPUTEST() 214 GrContext* ctx = ctxInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | SkRemoteGlyphCacheTest.cpp | 172 auto props = FindSurfaceProps(ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 174 MakeSettings(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 186 SkBitmap expected = RasterBlob(serverBlob, 10, 10, paint, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 187 SkBitmap actual = RasterBlob(clientBlob, 10, 10, paint, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 211 MakeSettings(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 413 auto props = FindSurfaceProps(ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 415 MakeSettings(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 427 SkBitmap expected = RasterBlob(serverBlob, 10, 10, paint, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 428 SkBitmap actual = RasterBlob(clientBlob, 10, 10, paint, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 487 auto props = FindSurfaceProps(ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | GrUploadPixelsTests.cpp | 95 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_SkColorType, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 96 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_SkColorType, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 99 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_SkColorType, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 100 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_SkColorType, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TraceMemoryDumpTest.cpp | 75 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 85 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 111 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 137 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 159 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | VkDrawableTest.cpp | 266 draw_drawable_test(reporter, ctxInfo.grContext(), nullptr); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() 281 if (ctxInfo.grContext()) { in DEF_GPUTEST() 283 factory.getSharedContextInfo(ctxInfo.grContext(), 0); in DEF_GPUTEST() 284 if (!child.grContext()) { in DEF_GPUTEST() 288 draw_drawable_test(reporter, ctxInfo.grContext(), child.grContext()); in DEF_GPUTEST()
|
D | TextBlobCacheTest.cpp | 159 text_blob_cache_inner(reporter, ctxInfo.grContext(), 1024, 256, 30, true, false); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 163 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, true, true); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 167 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, false, false); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 171 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, false, true); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
|
D | TransferPixelsTest.cpp | 183 basic_transfer_test(reporter, ctxInfo.grContext(), GrColorType::kRGBA_8888, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 184 basic_transfer_test(reporter, ctxInfo.grContext(), GrColorType::kRGBA_8888, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 187 basic_transfer_test(reporter, ctxInfo.grContext(), GrColorType::kBGRA_8888, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 188 basic_transfer_test(reporter, ctxInfo.grContext(), GrColorType::kBGRA_8888, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ImageTest.cpp | 184 test_encode(reporter, create_gpu_image(ctxInfo.grContext()).get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 340 sk_sp<SkImage> image(create_gpu_image(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 373 GrContext* context = contextInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 392 sk_sp<SkImage> otherContextImage = create_gpu_image(otherContextInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 393 otherContextInfo.grContext()->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 458 GrContext* context = contextInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 489 bool can = ctxInfo.grContext()->colorTypeSupportedAsImage(colorType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 490 auto* gpu = ctxInfo.grContext()->contextPriv().getGpu(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 494 SkImage::MakeFromTexture(ctxInfo.grContext(), backendTex, kTopLeft_GrSurfaceOrigin, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 501 ctxInfo.grContext()->flush(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ProxyConversionTest.cpp | 61 GrProxyProvider* proxyProvider = ctxInfo.grContext()->contextPriv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 62 GrGpu* gpu = ctxInfo.grContext()->contextPriv().getGpu(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 132 GrProxyProvider* proxyProvider = ctxInfo.grContext()->contextPriv().proxyProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 141 ctxInfo.grContext()->contextPriv().caps()->getBackendFormatFromColorType( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/external/pdfium/core/fxcodec/jbig2/ |
D | JBig2_GrrdProc.h | 25 JBig2ArithCtx* grContext); 39 JBig2ArithCtx* grContext); 52 JBig2ArithCtx* grContext); 56 JBig2ArithCtx* grContext); 60 JBig2ArithCtx* grContext);
|
D | JBig2_GrrdProc.cpp | 22 JBig2ArithCtx* grContext) { in Decode() argument 30 return DecodeTemplate0Opt(pArithDecoder, grContext); in Decode() 32 return DecodeTemplate0Unopt(pArithDecoder, grContext); in Decode() 36 return DecodeTemplate1Opt(pArithDecoder, grContext); in Decode() 38 return DecodeTemplate1Unopt(pArithDecoder, grContext); in Decode() 43 JBig2ArithCtx* grContext) { in DecodeTemplate0Unopt() argument 55 LTP = LTP ^ pArithDecoder->Decode(&grContext[0x0010]); in DecodeTemplate0Unopt() 80 int bVal = pArithDecoder->Decode(&grContext[CONTEXT]); in DecodeTemplate0Unopt() 99 bVal = pArithDecoder->Decode(&grContext[CONTEXT]); in DecodeTemplate0Unopt() 146 JBig2ArithCtx* grContext) { in DecodeTemplate0Opt() argument [all …]
|
D | JBig2_SddProc.h | 30 std::vector<JBig2ArithCtx>* grContext); 35 std::vector<JBig2ArithCtx>* grContext);
|
/external/skqp/src/atlastext/ |
D | SkAtlasTextTarget.cpp | 90 fOpMemoryPool = fContext->internal().grContext()->contextPriv().refOpMemoryPool(); in SkInternalAtlasTextTarget() 112 return this->context()->internal().grContext(); in getContext() 157 auto* grContext = this->context()->internal().grContext(); in drawText() local 158 auto atlasTextContext = grContext->contextPriv().drawingManager()->getTextContext(); in drawText() 165 atlasTextContext->drawGlyphRunList(grContext, this, GrNoClip(), this->ctm(), props, in drawText() 176 const GrCaps& caps = *this->context()->internal().grContext()->contextPriv().caps(); in addDrawOp() 222 auto glyphCache = context.grContext()->contextPriv().getGlyphCache(); in executeForTextTarget() 223 auto atlasManager = context.grContext()->contextPriv().getAtlasManager(); in executeForTextTarget() 224 auto resourceProvider = context.grContext()->contextPriv().resourceProvider(); in executeForTextTarget()
|
/external/skqp/src/compute/sk/ |
D | SkSurface_Compute.cpp | 130 GrContext * const grContext, 152 grContext->caps()->srgbSupport() && 167 grContext->caps()->srgbSupport() && SkImageInfoIsGammaCorrect(window->info()) 174 if (!grContext) { 178 if (!SkSurface_Gpu::Valid(grContext,desc.fConfig,colorSpace.get())) {
|
/external/skqp/platform_tools/android/apps/skottie/src/main/cpp/ |
D | native-lib.cpp | 73 sk_sp<GrContext> grContext = GrContext::MakeGL(std::move(glInterface), options); in Java_org_skia_skottie_SkottieRunner_nCreateProxy() local 74 if (!grContext.get()) { in Java_org_skia_skottie_SkottieRunner_nCreateProxy() 79 skottie->mGrContext = grContext; in Java_org_skia_skottie_SkottieRunner_nCreateProxy() 163 auto grContext = skottieAnimation->mRunner->mGrContext; in Java_org_skia_skottie_SkottieRunner_00024SkottieAnimationImpl_nDrawFrame() local 165 if (!grContext) { in Java_org_skia_skottie_SkottieRunner_00024SkottieAnimationImpl_nDrawFrame() 185 grContext.get(), backendRT, kBottomLeft_GrSurfaceOrigin, colorType, in Java_org_skia_skottie_SkottieRunner_00024SkottieAnimationImpl_nDrawFrame()
|
/external/skqp/dm/ |
D | DMGpuTestProcs.cpp | 62 if (ctxInfo.grContext()) { in RunWithGPUTestContexts() 64 ctxInfo.grContext()->flush(); in RunWithGPUTestContexts() 68 if (ctxInfo.grContext()) { in RunWithGPUTestContexts() 70 ctxInfo.grContext()->flush(); in RunWithGPUTestContexts()
|
/external/skqp/samplecode/ |
D | SampleChineseFling.cpp | 160 GrContext* grContext = canvas->getGrContext(); in onDrawContent() local 161 if (grContext) { in onDrawContent() 163 grContext->contextPriv().getFontAtlasImage_ForTesting( in onDrawContent() 167 image = grContext->contextPriv().getFontAtlasImage_ForTesting( in onDrawContent() 171 image = grContext->contextPriv().getFontAtlasImage_ForTesting( in onDrawContent() 175 image = grContext->contextPriv().getFontAtlasImage_ForTesting( in onDrawContent()
|
D | SampleAnimatedText.cpp | 103 GrContext* grContext = canvas->getGrContext(); in onDrawContent() local 104 if (grContext) { in onDrawContent() 105 sk_sp<SkImage> image = grContext->contextPriv().getFontAtlasImage_ForTesting( in onDrawContent()
|
/external/skqp/tools/gpu/ |
D | GrContextFactory.h | 174 GrContext* grContext() const { return fGrContext; } in grContext() function 186 ContextInfo(GrContextFactory::ContextType type, TestContext* testContext, GrContext* grContext, in ContextInfo() argument 188 : fType(type), fTestContext(testContext), fGrContext(grContext), fOptions(options) {} in ContextInfo()
|