Home
last modified time | relevance | path

Searched refs:grContext (Results 1 – 25 of 79) sorted by relevance

1234

/external/skia/tests/
DGrContextFactoryTest.cpp79 if (!info1.grContext()) {
84 info1.grContext()->ref();
89 REPORTER_ASSERT(reporter, info2.grContext());
92 REPORTER_ASSERT(reporter, info1.grContext() != info2.grContext());
95 info1.grContext()->unref();
105 if (!info1.grContext()) {
110 info1.grContext()->ref();
114 ContextInfo info2 = testFactory.getSharedContextInfo(info1.grContext());
115 REPORTER_ASSERT(reporter, !info2.grContext());
116 info1.grContext()->unref();
[all …]
DTransferPixelsTest.cpp159 basic_transfer_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
161 basic_transfer_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 basic_transfer_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
165 basic_transfer_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 basic_transfer_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
171 basic_transfer_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
173 basic_transfer_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
175 basic_transfer_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DSurfaceSemaphoreTest.cpp67 GrContext* childCtx = childInfo.grContext(); in draw_child()
102 GrContext* mainCtx = mainInfo.grContext(); in surface_semaphore_test()
163 if (ctxInfo.grContext()) { in DEF_GPUTEST()
164 sk_gpu_test::ContextInfo child1 = factory->getSharedContextInfo(ctxInfo.grContext(), 0); in DEF_GPUTEST()
165 sk_gpu_test::ContextInfo child2 = factory->getSharedContextInfo(ctxInfo.grContext(), 1); in DEF_GPUTEST()
166 if (!child1.grContext() || !child2.grContext()) { in DEF_GPUTEST()
DProxyRefTest.cpp93 GrResourceProvider* provider = ctxInfo.grContext()->resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 sk_sp<GrTextureProxy> proxy((*make)(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 sk_sp<GrTextureProxy> proxy((*make)(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
132 sk_sp<GrTextureProxy> proxy((*make)(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 sk_sp<GrTextureProxy> proxy((*make)(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 sk_sp<GrTextureProxy> proxy((*make)(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTestTest.cpp34 REPORTER_ASSERT(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
43 REPORTER_ASSERT(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
52 REPORTER_ASSERT(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
DFloatingPointTextureTest.cpp81 runFPTest<float>(reporter, ctxInfo.grContext(), FLT_MIN, FLT_MAX, FLT_EPSILON, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
89 runFPTest<float>(reporter, ctxInfo.grContext(), FLT_MIN, FLT_MAX, FLT_EPSILON, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 runFPTest<SkHalf>(reporter, ctxInfo.grContext(), SK_HalfMin, SK_HalfMax, SK_HalfEpsilon, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 runFPTest<SkHalf>(reporter, ctxInfo.grContext(), SK_HalfMin, SK_HalfMax, SK_HalfEpsilon, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DSurfaceTest.cpp88 SkSurface::MakeRenderTarget(ctxInfo.grContext(), SkBudgeted::kNo, info)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
130 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, &requestInfo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
160 auto surface(surface_func(ctxInfo.grContext(), at, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
218 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
258 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
347 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
369 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
410 auto surface1(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
411 auto surface2(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
427 auto surface(surface_func(ctxInfo.grContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DTextBlobCacheTest.cpp151 text_blob_cache_inner(reporter, ctxInfo.grContext(), 1024, 256, 30, true, false); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
155 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, true, true); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
159 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, false, false); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
163 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, false, true); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
DVkUploadPixelsTests.cpp144 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, false); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
145 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, true); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
148 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, false); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
149 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, true); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
DGrDrawTargetTest.cpp17 SkString result = ctxInfo.grContext()->caps()->dump(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
19 SkString shaderResult = ctxInfo.grContext()->caps()->shaderCaps()->dump(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
DImageNewShaderTest.cpp140 gpu_to_gpu(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
143 gpu_to_raster(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
146 raster_to_gpu(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkClearTests.cpp202 basic_clear_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
203 basic_clear_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
204 sub_clear_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
205 sub_clear_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
DProxyTest.cpp114 GrResourceProvider* provider = ctxInfo.grContext()->resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 const GrCaps& caps = *ctxInfo.grContext()->caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 GrResourceProvider* provider = ctxInfo.grContext()->resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
210 const GrCaps& caps = *ctxInfo.grContext()->caps(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
282 GrResourceProvider* provider = ctxInfo.grContext()->resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DImageTest.cpp188 test_encode(reporter, create_gpu_image(ctxInfo.grContext()).get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
389 sk_sp<SkImage> image(create_gpu_image(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
424 GrContext* context = contextInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
441 sk_sp<SkImage> otherContextImage = create_gpu_image(otherContextInfo.grContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
493 GrContext* context = contextInfo.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
521 auto context = contextInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
633 image_test_read_pixels(reporter, create_gpu_image(ctxInfo.grContext()).get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
704 sk_sp<SkImage> image(create_gpu_image(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
747 sk_sp<SkImage> image(create_gpu_image(ctxInfo.grContext())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
766 GrContext* ctx = ctxInfo.grContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all …]
DGrSurfaceTest.cpp25 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
76 GrContext* context = ctxInfo.grContext(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
156 GrContext* context = context_info.grContext(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
159 if (!context_info.grContext()->caps()->isConfigTexturable(desc.fConfig)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkWrapTests.cpp188 wrap_tex_test(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
189 wrap_rt_test(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
190 wrap_trt_test(reporter, ctxInfo.grContext()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_GrrdProc.h19 JBig2ArithCtx* grContext);
22 JBig2ArithCtx* grContext);
25 JBig2ArithCtx* grContext);
28 JBig2ArithCtx* grContext);
31 JBig2ArithCtx* grContext);
DJBig2_GrrdProc.cpp16 JBig2ArithCtx* grContext) { in decode() argument
24 return decode_Template0_opt(pArithDecoder, grContext); in decode()
26 return decode_Template0_unopt(pArithDecoder, grContext); in decode()
30 return decode_Template1_opt(pArithDecoder, grContext); in decode()
31 return decode_Template1_unopt(pArithDecoder, grContext); in decode()
36 JBig2ArithCtx* grContext) { in decode_Template0_unopt() argument
42 LTP = LTP ^ pArithDecoder->DECODE(&grContext[0x0010]); in decode_Template0_unopt()
72 int bVal = pArithDecoder->DECODE(&grContext[CONTEXT]); in decode_Template0_unopt()
127 bVal = pArithDecoder->DECODE(&grContext[CONTEXT]); in decode_Template0_unopt()
152 JBig2ArithCtx* grContext) { in decode_Template0_opt() argument
[all …]
DJBig2_SddProc.h25 std::vector<JBig2ArithCtx>* grContext);
29 std::vector<JBig2ArithCtx>* grContext,
DJBig2_SymbolDict.h40 void SetGrContext(const std::vector<JBig2ArithCtx>& grContext) { in SetGrContext() argument
41 m_grContext = grContext; in SetGrContext()
DJBig2_TrdProc.h44 JBig2ArithCtx* grContext);
47 JBig2ArithCtx* grContext,
/external/skia/samplecode/
DSampleAnimatedText.cpp105 GrContext* grContext = canvas->getGrContext(); in onDrawContent() local
106 if (grContext) { in onDrawContent()
108 grContext->getFontAtlasImage_ForTesting(GrMaskFormat::kA8_GrMaskFormat); in onDrawContent()
/external/skia/tools/gpu/
DGrContextFactory.h183 GrContext* grContext() const { return fGrContext; } in grContext() function
195 GrContext* grContext) in ContextInfo() argument
198 , fGrContext(grContext) { in ContextInfo()
/external/skia/src/views/
DSkWindow.cpp327 GrContext* grContext) { in makeGpuBackedSurface() argument
343 GrPixelConfig config = grContext->caps()->srgbSupport() && in makeGpuBackedSurface()
361 grContext->caps()->srgbSupport() && info().colorSpace() in makeGpuBackedSurface()
363 return SkSurface::MakeFromBackendRenderTarget(grContext, backendRT, kBottomLeft_GrSurfaceOrigin, in makeGpuBackedSurface()
/external/skia/tools/fiddle/
Dfiddle_main.cpp148 auto grContext = create_grcontext(gGLDriverInfo); in main() local
149 if (!grContext) { in main()
152 auto surface = SkSurface::MakeRenderTarget(grContext.get(), SkBudgeted::kNo, info); in main()

1234