/external/skqp/gm/ |
D | surface.cpp | 90 test_draw(surface->getCanvas(), rec.fLabel); in onDraw() 128 drawInto(surf->getCanvas()); in onDraw() 134 drawInto(surf2->getCanvas()); in onDraw() 154 surf->getCanvas()->clear(SK_ColorRED); 161 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256)); 162 surf->getCanvas()->clear(SK_ColorBLUE); 171 surf->getCanvas()->clear(SK_ColorRED); 181 surf->getCanvas()->saveLayer({0, 0, 256, 256}, &paint); 182 surf->getCanvas()->clear(SK_ColorBLUE); 183 surf->getCanvas()->restore(); [all …]
|
D | discard.cpp | 56 surface->getCanvas()->discard(); in onDraw() 61 surface->getCanvas()->drawColor(color); in onDraw() 64 surface->getCanvas()->clear(color); in onDraw() 69 surface->getCanvas()->drawPaint(paint); in onDraw() 76 surface->getCanvas()->discard(); in onDraw()
|
D | shapes_as_paths.cpp | 169 surface->getCanvas()->clear(SK_ColorBLACK); in draw_rect_geom_diff_grid() 170 surface->getCanvas()->save(); in draw_rect_geom_diff_grid() 171 surface->getCanvas()->concat(*mat); in draw_rect_geom_diff_grid() 172 f1(surface->getCanvas(), rect, paint); in draw_rect_geom_diff_grid() 173 surface->getCanvas()->restore(); in draw_rect_geom_diff_grid() 177 surface->getCanvas()->clear(SK_ColorBLACK); in draw_rect_geom_diff_grid() 178 surface->getCanvas()->save(); in draw_rect_geom_diff_grid() 179 surface->getCanvas()->concat(*mat); in draw_rect_geom_diff_grid() 180 f2(surface->getCanvas(), rect, paint); in draw_rect_geom_diff_grid() 181 surface->getCanvas()->restore(); in draw_rect_geom_diff_grid()
|
/external/skia/gm/ |
D | surface.cpp | 113 test_draw(surface->getCanvas(), rec.fLabel); in onDraw() 151 drawInto(surf->getCanvas()); in onDraw() 157 drawInto(surf2->getCanvas()); in onDraw() 245 surf->getCanvas()->clear(SK_ColorRED); 252 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256)); 253 surf->getCanvas()->clear(SK_ColorBLUE); 264 surf->getCanvas()->clear(SK_ColorBLUE); 269 surf->getCanvas()->clear(SK_ColorRED); 272 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256)); 273 surf->getCanvas()->drawImage(image, 0, 0); [all …]
|
D | discard.cpp | 69 surface->getCanvas()->discard(); in onDraw() 74 surface->getCanvas()->drawColor(color); in onDraw() 77 surface->getCanvas()->clear(color); in onDraw() 82 surface->getCanvas()->drawPaint(paint); in onDraw() 89 surface->getCanvas()->discard(); in onDraw()
|
D | gpu_blur_utils.cpp | 133 surf->getCanvas()->clear(SK_ColorRED); in make_src_image() 134 surf->getCanvas()->clipIRect(contentArea->makeOutset(1, 1)); in make_src_image() 135 surf->getCanvas()->clear(SK_ColorTRANSPARENT); in make_src_image() 136 surf->getCanvas()->clipIRect(*contentArea); in make_src_image() 137 surf->getCanvas()->translate(contentArea->top(), contentArea->left()); in make_src_image() 145 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in make_src_image() 152 surf->getCanvas()->drawLine({0.f, 1.f*h/8.f}, {w, 1.f*h/8.f}, paint); in make_src_image() 154 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint); in make_src_image() 156 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint); in make_src_image() 158 surf->getCanvas()->drawLine({0.f, 7.f*h/8.f}, {w, 7.f*h/8.f}, paint); in make_src_image() [all …]
|
/external/skqp/tools/skiaserve/ |
D | Request.cpp | 51 SkCanvas* Request::getCanvas() { in getCanvas() function in Request 68 SkCanvas* target = fSurface->getCanvas(); in getCanvas() 74 fDebugCanvas->drawTo(this->getCanvas(), n, m); in drawToPng() 76 return writeCanvasToPng(this->getCanvas()); in drawToPng() 181 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in enableGPU() 182 this->getCanvas()->flush(); in enableGPU() 211 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in initPictureFromStream() 212 this->getCanvas()->flush(); in initPictureFromStream() 217 SkCanvas* canvas = this->getCanvas(); in getJsonOps() 233 SkCanvas* canvas = this->getCanvas(); in getJsonOpList() [all …]
|
/external/skia/tests/ |
D | Skbug6653.cpp | 55 s1->getCanvas()->clear(SK_ColorBLACK); in test_bug_6653() 56 s1->getCanvas()->drawOval(rect, paint); in test_bug_6653() 62 s2->getCanvas()->clear(SK_ColorBLUE); in test_bug_6653() 67 s3->getCanvas()->clear(SK_ColorBLUE); in test_bug_6653() 68 s0->getCanvas()->drawImage(read_pixels(s3, SK_ColorBLACK).asImage(), 0, 0); in test_bug_6653() 72 s4->getCanvas()->clear(SK_ColorBLUE); in test_bug_6653() 73 s4->getCanvas()->drawOval(rect, paint); in test_bug_6653()
|
D | TextureBindingsResetTest.cpp | 91 surf->getCanvas()->clear(0x80FF0000); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 93 surf->getCanvas()->clear(SK_ColorBLUE); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 94 surf->getCanvas()->save(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 95 surf->getCanvas()->scale(0.25, 0.25); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 96 surf->getCanvas()->drawImage(img.get(), 0, 0, SkSamplingOptions({1.0f/3, 1.0f/3}), nullptr); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 97 surf->getCanvas()->restore(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 124 surf->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 144 surf->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | GrTextureMipMapInvalidationTest.cpp | 48 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 59 surf2->getCanvas()->scale(0.2f, 0.2f); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 60 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, sampling); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 66 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 86 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 109 surf->getCanvas()->drawImageRect(img, SkRect::MakeWH(1, 1), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | DrawPathTest.cpp | 34 SkCanvas* canvas = surf->getCanvas(); in test_big_aa_rect() 113 surface->getCanvas()->drawPath(path, paint); in test_crbug131181() 144 SkCanvas* canvas = surface->getCanvas(); in test_inversepathwithclip() 183 surface->getCanvas()->drawPath(path, paint); in test_bug533() 225 surface->getCanvas()->drawPath(path, paint); in test_bigcubic() 253 SkCanvas* canvas = surface->getCanvas(); in test_halfway() 279 surface->getCanvas()->drawPath(path, paint); in test_giantaa() 328 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_simple() 343 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_actual()
|
D | WrappedSurfaceCopyOnWriteTest.cpp | 39 GrSurfaceDrawContext* sdc = SkCanvasPriv::TopDeviceSurfaceDrawContext(surf->getCanvas()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 44 surf->getCanvas()->clear(SkColor4f{1, 0, 0, 1}); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 50 surf2->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 53 surf->getCanvas()->clear({0, 0, 1, 1}); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 68 recorder.getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 77 recorder.getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
|
/external/skqp/tests/ |
D | GrTextureMipMapInvalidationTest.cpp | 35 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 36 surf1->getCanvas()->flush(); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 46 surf2->getCanvas()->scale(0.2f, 0.2f); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 47 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, &paint); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 53 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT() 73 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 97 surf->getCanvas()->drawImageRect(img, SkRect::MakeWH(1, 1), &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | skbug6653.cpp | 54 s1->getCanvas()->clear(SK_ColorBLACK); in test_bug_6653() 55 s1->getCanvas()->drawOval(rect, paint); in test_bug_6653() 61 s2->getCanvas()->clear(SK_ColorBLUE); in test_bug_6653() 66 s3->getCanvas()->clear(SK_ColorBLUE); in test_bug_6653() 68 s0->getCanvas()->drawBitmap(b3, 0, 0); in test_bug_6653() 72 s4->getCanvas()->clear(SK_ColorBLUE); in test_bug_6653() 73 s4->getCanvas()->drawOval(rect, paint); in test_bug_6653()
|
D | DrawPathTest.cpp | 34 SkCanvas* canvas = surf->getCanvas(); in test_big_aa_rect() 113 surface->getCanvas()->drawPath(path, paint); in test_crbug131181() 144 SkCanvas* canvas = surface->getCanvas(); in test_inversepathwithclip() 183 surface->getCanvas()->drawPath(path, paint); in test_bug533() 225 surface->getCanvas()->drawPath(path, paint); in test_bigcubic() 253 SkCanvas* canvas = surface->getCanvas(); in test_halfway() 279 surface->getCanvas()->drawPath(path, paint); in test_giantaa() 328 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_simple() 343 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_actual()
|
/external/skia/tools/skiaserve/ |
D | Request.cpp | 54 SkCanvas* Request::getCanvas() { in getCanvas() function in Request 73 SkCanvas* target = fSurface->getCanvas(); in getCanvas() 79 auto* canvas = this->getCanvas(); in drawToPng() 83 return writeCanvasToPng(this->getCanvas()); in drawToPng() 188 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in enableGPU() 218 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in initPictureFromStream() 224 SkCanvas* canvas = this->getCanvas(); in getJsonOps() 240 SkCanvas* canvas = this->getCanvas(); in getJsonOpsTask() 254 SkCanvas* canvas = surface->getCanvas(); in getJsonInfo() 280 bmp.allocPixels(this->getCanvas()->imageInfo().makeWH(1, 1)); in getPixel() [all …]
|
/external/skqp/docs/ |
D | SkSurface_Reference.bmh | 13 surface->getCanvas() to use that canvas. The caller should not delete the returned canvas; 35 SkCanvas* canvas = surface->getCanvas(); 85 SkCanvas* canvas = surface->getCanvas(); 124 SkCanvas* canvas = surface->getCanvas(); 163 SkCanvas* canvas = surface->getCanvas(); 198 SkCanvas* canvas = surface->getCanvas(); 252 auto surfaceCanvas = gpuSurface->getCanvas(); 287 auto surfaceCanvas = gpuSurface->getCanvas(); 324 auto surfaceCanvas = gpuSurface->getCanvas(); 359 auto surfaceCanvas = gpuSurface->getCanvas(); [all …]
|
/external/skia/modules/androidkit/src/ |
D | Surface.cpp | 39 virtual SkCanvas* getCanvas() = 0; 66 SkCanvas* getCanvas() override { in getCanvas() function in __anon8da6ea000111::WindowSurface 68 return fSurface->getCanvas(); in getCanvas() 117 SkCanvas* getCanvas() override { in getCanvas() function in __anon8da6ea000111::BitmapSurface 119 return fSurface->getCanvas(); in getCanvas() 175 SkCanvas* getCanvas() override { in getCanvas() function in __anon8da6ea000111::ThreadedSurface 250 ? reinterpret_cast<jlong>(surface->getCanvas()) in Surface_GetNativeCanvas()
|
/external/skia/docs/examples/ |
D | Surface_draw.cpp | 9 big->getCanvas()->clear(SK_ColorRED); in draw() 10 lil->getCanvas()->clear(SK_ColorBLACK); in draw() 11 lil->draw(big->getCanvas(), 16, 16); in draw()
|
D | Surface_makeImageSnapshot.cpp | 9 big->getCanvas()->clear(SK_ColorRED); in draw() 10 lil->getCanvas()->clear(SK_ColorBLACK); in draw() 12 lil->draw(big->getCanvas(), 16, 16); in draw()
|
D | Surface_makeImageSnapshot_2.cpp | 9 big->getCanvas()->clear(SK_ColorRED); in draw() 10 lil->getCanvas()->clear(SK_ColorBLACK); in draw() 12 lil->draw(big->getCanvas(), 16, 16); in draw()
|
D | 50_percent_srgb.cpp | 7 surf->getCanvas()->drawColor(SK_ColorWHITE); in make() 8 surf->getCanvas()->drawRect({0, 0, 1, 1}, SkPaint()); in make() 9 surf->getCanvas()->drawRect({1, 1, 2, 2}, SkPaint()); in make()
|
/external/skia/fuzz/ |
D | FuzzGradients.cpp | 135 SkCanvas* c = surface->getCanvas(); in fuzzLinearGradient() 140 surface->getCanvas()->drawPaint(p); in fuzzLinearGradient() 173 SkCanvas* c = surface->getCanvas(); in fuzzRadialGradient() 177 surface->getCanvas()->drawPaint(p); in fuzzRadialGradient() 211 SkCanvas* c = surface->getCanvas(); in fuzzTwoPointConicalGradient() 215 surface->getCanvas()->drawPaint(p); in fuzzTwoPointConicalGradient() 247 SkCanvas* c = surface->getCanvas(); in fuzzSweepGradient() 251 surface->getCanvas()->drawPaint(p); in fuzzSweepGradient()
|
/external/skqp/fuzz/ |
D | FuzzGradients.cpp | 133 SkCanvas* c = surface->getCanvas(); in fuzzLinearGradient() 138 surface->getCanvas()->drawPaint(p); in fuzzLinearGradient() 171 SkCanvas* c = surface->getCanvas(); in fuzzRadialGradient() 175 surface->getCanvas()->drawPaint(p); in fuzzRadialGradient() 209 SkCanvas* c = surface->getCanvas(); in fuzzTwoPointConicalGradient() 213 surface->getCanvas()->drawPaint(p); in fuzzTwoPointConicalGradient() 245 SkCanvas* c = surface->getCanvas(); in fuzzSweepGradient() 249 surface->getCanvas()->drawPaint(p); in fuzzSweepGradient()
|
/external/skqp/bench/ |
D | SKPBench.cpp | 80 fSurfaces.back()->getCanvas()->clipRect(clip); in onPerCanvasPreDraw() 82 fSurfaces.back()->getCanvas()->setMatrix(canvas->getTotalMatrix()); in onPerCanvasPreDraw() 83 fSurfaces.back()->getCanvas()->scale(fScale, fScale); in onPerCanvasPreDraw() 134 mpd.add(fSurfaces[j]->getCanvas(), fPic.get(), &trans); in drawMPDPicture() 145 fSurfaces[j]->getCanvas()->drawPicture(fPic.get(), &trans, nullptr); in drawPicture() 149 fSurfaces[j]->getCanvas()->flush(); in drawPicture()
|