/third_party/flutter/skia/gm/ |
D | surface.cpp | 110 test_draw(surface->getCanvas(), rec.fLabel); in onDraw() 148 drawInto(surf->getCanvas()); in onDraw() 154 drawInto(surf2->getCanvas()); in onDraw() 174 surf->getCanvas()->clear(SK_ColorRED); 181 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256)); 182 surf->getCanvas()->clear(SK_ColorBLUE); 191 surf->getCanvas()->clear(SK_ColorRED); 201 surf->getCanvas()->saveLayer({0, 0, 256, 256}, &paint); 202 surf->getCanvas()->clear(SK_ColorBLUE); 203 surf->getCanvas()->restore(); [all …]
|
D | discard.cpp | 63 surface->getCanvas()->discard(); in onDraw() 68 surface->getCanvas()->drawColor(color); in onDraw() 71 surface->getCanvas()->clear(color); in onDraw() 76 surface->getCanvas()->drawPaint(paint); in onDraw() 83 surface->getCanvas()->discard(); in onDraw()
|
D | asyncrescaleandread.cpp | 53 SkASSERT(surface->getCanvas()->getGrContext()); in do_read_and_scale() 54 surface->getCanvas()->getGrContext()->checkAsyncWorkCompletion(); in do_read_and_scale() 101 SkASSERT(surface->getCanvas()->getGrContext()); in do_read_and_scale_yuv() 102 surface->getCanvas()->getGrContext()->checkAsyncWorkCompletion(); in do_read_and_scale_yuv() 107 auto* gr = surface->getCanvas()->getGrContext(); in do_read_and_scale_yuv() 215 surface->getCanvas()->drawImage(image, 0, 0, &paint); in do_rescale_image_grid() 268 surface->getCanvas()->clear(SK_ColorRED); 269 surface->getCanvas()->save(); 270 surface->getCanvas()->clipRect(SkRect::Make(srcRect), SkClipOp::kIntersect, false); 271 surface->getCanvas()->clear(SK_ColorBLUE); [all …]
|
/third_party/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 | 66 surface->getCanvas()->discard(); in onDraw() 71 surface->getCanvas()->drawColor(color); in onDraw() 74 surface->getCanvas()->clear(color); in onDraw() 79 surface->getCanvas()->drawPaint(paint); in onDraw() 86 surface->getCanvas()->discard(); in onDraw()
|
D | crop_imagefilter.cpp | 125 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in make_image() 132 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint); in make_image() 134 surf->getCanvas()->drawLine({0.f, 3.f*h/8.f}, {w, 3.f*h/8.f}, paint); in make_image() 136 surf->getCanvas()->drawLine({0.f, 5.f*h/8.f}, {w, 5.f*h/8.f}, paint); in make_image() 138 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint); in make_image() 143 surf->getCanvas()->drawLine({1.f*w/4.f, 0.f}, {1.f*h/4.f, h}, paint); in make_image() 145 surf->getCanvas()->drawLine({3.f*w/8.f, 0.f}, {3.f*h/8.f, h}, paint); in make_image() 147 surf->getCanvas()->drawLine({5.f*w/8.f, 0.f}, {5.f*h/8.f, h}, paint); in make_image() 149 surf->getCanvas()->drawLine({3.f*w/4.f, 0.f}, {3.f*h/4.f, h}, paint); in make_image() 153 surf->getCanvas()->clipRect(*contentBounds, SkClipOp::kDifference); in make_image() [all …]
|
D | gpu_blur_utils.cpp | 138 surf->getCanvas()->clear(SK_ColorRED); in make_src_image() 139 surf->getCanvas()->clipIRect(contentArea->makeOutset(1, 1)); in make_src_image() 140 surf->getCanvas()->clear(SK_ColorTRANSPARENT); in make_src_image() 141 surf->getCanvas()->clipIRect(*contentArea); in make_src_image() 142 surf->getCanvas()->translate(contentArea->top(), contentArea->left()); in make_src_image() 150 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in make_src_image() 157 surf->getCanvas()->drawLine({0.f, 1.f*h/8.f}, {w, 1.f*h/8.f}, paint); in make_src_image() 159 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint); in make_src_image() 161 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint); in make_src_image() 163 surf->getCanvas()->drawLine({0.f, 7.f*h/8.f}, {w, 7.f*h/8.f}, paint); in make_src_image() [all …]
|
/third_party/flutter/skia/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 …]
|
/third_party/flutter/skia/tests/ |
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 | GrTextureMipMapInvalidationTest.cpp | 39 surf1->getCanvas()->drawCircle(128, 128, 50, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 50 surf2->getCanvas()->scale(0.2f, 0.2f); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 51 surf2->getCanvas()->drawImage(surf1->makeImageSnapshot(), 0, 0, &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 57 surf1->getCanvas()->drawCircle(128, 128, 100, SkPaint()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 77 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 101 surf->getCanvas()->drawImageRect(img, SkRect::MakeWH(1, 1), &paint); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TextureBindingsResetTest.cpp | 90 surf->getCanvas()->clear(0x80FF0000); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 92 surf->getCanvas()->clear(SK_ColorBLUE); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 93 surf->getCanvas()->save(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 94 surf->getCanvas()->scale(0.25, 0.25); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 97 surf->getCanvas()->drawImage(img, 0, 0, &paint); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 98 surf->getCanvas()->restore(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 125 surf->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 152 surf->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_GL_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()
|
/third_party/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 | 92 surf->getCanvas()->clear(0x80FF0000); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 94 surf->getCanvas()->clear(SK_ColorBLUE); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 95 surf->getCanvas()->save(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 96 surf->getCanvas()->scale(0.25, 0.25); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 97 surf->getCanvas()->drawImage(img.get(), 0, 0, SkSamplingOptions({1.0f/3, 1.0f/3}), nullptr); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 98 surf->getCanvas()->restore(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 125 surf->getCanvas()->drawImage(img, 0, 0); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 145 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() 192 SkCanvas* canvas = surface->getCanvas(); in test_inversepathwithclip() 231 surface->getCanvas()->drawPath(path, paint); in test_bug533() 273 surface->getCanvas()->drawPath(path, paint); in test_bigcubic() 301 SkCanvas* canvas = surface->getCanvas(); in test_halfway() 327 surface->getCanvas()->drawPath(path, paint); in test_giantaa() 376 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_simple() 391 SkCanvas* canvas = surface->getCanvas(); in test_crbug_472147_actual()
|
D | WrappedSurfaceCopyOnWriteTest.cpp | 39 GrRenderTargetProxy* rtp = SkCanvasPriv::TopDeviceTargetProxy(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()
|
/third_party/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 …]
|
/third_party/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_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 | 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()
|
/third_party/flutter/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, nullptr); 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, nullptr); 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, nullptr); in draw()
|
/third_party/flutter/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()
|