Home
last modified time | relevance | path

Searched refs:gpuSurface (Results 1 – 16 of 16) sorted by relevance

/external/skqp/tests/
DPinnedImageTest.cpp49 sk_sp<SkSurface> gpuSurface = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, ii); in basic_test() local
50 SkCanvas* canvas = gpuSurface->getCanvas(); in basic_test()
55 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorRED)); in basic_test()
60 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorGREEN)); in basic_test()
68 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorGREEN)); in basic_test()
73 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorGREEN)); in basic_test()
81 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorBLUE)); in basic_test()
DDeferredDisplayListTest.cpp1057 SkSurface_Gpu* gpuSurface = static_cast<SkSurface_Gpu*>(s.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
1058 REPORTER_ASSERT(reporter, gpuSurface->isCompatible(c)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
1069 gpuSurface = static_cast<SkSurface_Gpu*>(s.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
1070 REPORTER_ASSERT(reporter, gpuSurface->isCompatible(c)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/tests/
DPinnedImageTest.cpp49 sk_sp<SkSurface> gpuSurface = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, ii); in basic_test() local
50 SkCanvas* canvas = gpuSurface->getCanvas(); in basic_test()
55 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorRED)); in basic_test()
60 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorGREEN)); in basic_test()
68 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorGREEN)); in basic_test()
73 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorGREEN)); in basic_test()
81 REPORTER_ASSERT(reporter, surface_is_expected_color(gpuSurface.get(), ii, SK_ColorBLUE)); in basic_test()
DDeferredDisplayListTest.cpp837 SkSurface_Gpu* gpuSurface = static_cast<SkSurface_Gpu*>(s.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
838 REPORTER_ASSERT(reporter, gpuSurface->isCompatible(c)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
849 gpuSurface = static_cast<SkSurface_Gpu*>(s.get()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
850 REPORTER_ASSERT(reporter, gpuSurface->isCompatible(c)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/docs/
DSkSurface_Reference.bmh264 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendTexture(context,
267 auto surfaceCanvas = gpuSurface->getCanvas();
269 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
301 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendRenderTarget(context,
304 auto surfaceCanvas = gpuSurface->getCanvas();
306 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
328 #ToDo example is bogus; gpuSurface should not make image ##
338 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendTextureAsRenderTarget(
341 auto surfaceCanvas = gpuSurface->getCanvas();
343 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
[all …]
/external/skqp/docs/
DSkSurface_Reference.bmh249 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendTexture(context,
252 auto surfaceCanvas = gpuSurface->getCanvas();
254 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
284 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendRenderTarget(context,
287 auto surfaceCanvas = gpuSurface->getCanvas();
289 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
311 #ToDo example is bogus; gpuSurface should not make image ##
321 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendTextureAsRenderTarget(
324 auto surfaceCanvas = gpuSurface->getCanvas();
326 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
[all …]
/external/skia/tools/sk_app/ios/
DRasterWindowContext_ios.cpp105 sk_sp<SkSurface> gpuSurface = INHERITED::getBackbufferSurface(); in onSwapBuffers() local
106 SkCanvas* gpuCanvas = gpuSurface->getCanvas(); in onSwapBuffers()
/external/skqp/tools/sk_app/ios/
DRasterWindowContext_ios.cpp105 sk_sp<SkSurface> gpuSurface = INHERITED::getBackbufferSurface(); in onSwapBuffers() local
106 SkCanvas* gpuCanvas = gpuSurface->getCanvas(); in onSwapBuffers()
/external/skia/site/user/api/
Dskcanvas_creation.md103 sk_sp<SkSurface> gpuSurface(
105 if (!gpuSurface) {
109 SkCanvas* gpuCanvas = gpuSurface->getCanvas();
111 sk_sp<SkImage> img(gpuSurface->makeImageSnapshot());
DSkSurface_Reference.md577 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendRenderTarget(context,
580 auto surfaceCanvas = gpuSurface->getCanvas();
582 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
/external/skqp/site/user/api/
Dskcanvas_creation.md103 sk_sp<SkSurface> gpuSurface(
105 if (!gpuSurface) {
109 SkCanvas* gpuCanvas = gpuSurface->getCanvas();
111 sk_sp<SkImage> img(gpuSurface->makeImageSnapshot());
DSkSurface_Reference.md577 sk_sp<SkSurface> gpuSurface = SkSurface::MakeFromBackendRenderTarget(context,
580 auto surfaceCanvas = gpuSurface->getCanvas();
582 sk_sp<SkImage> image(gpuSurface->makeImageSnapshot());
/external/skia/tools/sk_app/mac/
DRasterWindowContext_mac.mm194 sk_sp<SkSurface> gpuSurface = INHERITED::getBackbufferSurface();
195 SkCanvas* gpuCanvas = gpuSurface->getCanvas();
/external/skqp/tools/sk_app/mac/
DRasterWindowContext_mac.mm205 sk_sp<SkSurface> gpuSurface = INHERITED::getBackbufferSurface();
206 SkCanvas* gpuCanvas = gpuSurface->getCanvas();
/external/skqp/src/image/
DSkSurface_Gpu.cpp333 SkSurface_Gpu* gpuSurface = static_cast<SkSurface_Gpu*>(s.get()); in MakeRenderTarget() local
334 SkASSERT(gpuSurface->isCompatible(c)); in MakeRenderTarget()
/external/skia/src/image/
DSkSurface_Gpu.cpp348 SkSurface_Gpu* gpuSurface = static_cast<SkSurface_Gpu*>(s.get()); in MakeRenderTarget() local
349 SkASSERT(gpuSurface->isCompatible(c)); in MakeRenderTarget()