/external/skia/gm/ |
D | crbug_1162942.cpp | 40 SkCanvas::QuadAAFlags flags[] = { 41 (SkCanvas::QuadAAFlags) (SkCanvas::kTop_QuadAAFlag | SkCanvas::kLeft_QuadAAFlag ), 42 (SkCanvas::QuadAAFlags) (SkCanvas::kBottom_QuadAAFlag | SkCanvas::kRight_QuadAAFlag), 43 (SkCanvas::QuadAAFlags) (SkCanvas::kBottom_QuadAAFlag), 44 (SkCanvas::QuadAAFlags) (SkCanvas::kRight_QuadAAFlag), 45 (SkCanvas::QuadAAFlags) (SkCanvas::kRight_QuadAAFlag | SkCanvas::kLeft_QuadAAFlag), 46 (SkCanvas::QuadAAFlags) (SkCanvas::kTop_QuadAAFlag | SkCanvas::kBottom_QuadAAFlag),
|
D | gm.h | 25 class SkCanvas; variable 44 static void SK_MACRO_CONCAT(NAME,_GM_inner)(SkCanvas*); \ 49 void SK_MACRO_CONCAT(NAME,_GM_inner)(SkCanvas* CANVAS) 56 static skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas*, SkString*); \ 58 skiagm::DrawResult SK_MACRO_CONCAT(NAME,_GM)(SkCanvas* CANVAS, SkString* ERR_MSG) 67 SkCanvas*); \ 75 SkCanvas* CANVAS) 83 GrRecordingContext*, GrSurfaceDrawContext*, SkCanvas*, SkString*); \ 88 SkCanvas* CANVAS, SkString* ERR_MSG) 116 DrawResult gpuSetup(GrDirectContext* context, SkCanvas* canvas) { in gpuSetup() [all …]
|
D | drawquadset.cpp | 42 static void draw_text(SkCanvas* canvas, const char* text) { in draw_text() 47 static void draw_gradient_tiles(SkCanvas* canvas, bool alignGradients) { in draw_gradient_tiles() 70 unsigned aa = SkCanvas::kNone_QuadAAFlags; in draw_gradient_tiles() 72 aa |= SkCanvas::kTop_QuadAAFlag; in draw_gradient_tiles() 75 aa |= SkCanvas::kBottom_QuadAAFlag; in draw_gradient_tiles() 78 aa |= SkCanvas::kLeft_QuadAAFlag; in draw_gradient_tiles() 81 aa |= SkCanvas::kRight_QuadAAFlag; in draw_gradient_tiles() 98 tile, nullptr, static_cast<SkCanvas::QuadAAFlags>(aa), color, in draw_gradient_tiles() 110 static void draw_color_tiles(SkCanvas* canvas, bool multicolor) { in draw_color_tiles() 122 unsigned aa = SkCanvas::kNone_QuadAAFlags; in draw_color_tiles() [all …]
|
D | concavepaths.cpp | 16 void test_concave(SkCanvas* canvas, const SkPaint& paint) { in test_concave() 22 void test_reverse_concave(SkCanvas* canvas, const SkPaint& paint) { in test_reverse_concave() 30 void test_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie() 38 void test_fake_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_fake_bowtie() 48 void test_intruding_vertex(SkCanvas* canvas, const SkPaint& paint) { in test_intruding_vertex() 58 void test_inversion_repeat_vertex(SkCanvas* canvas, const SkPaint& paint) { in test_inversion_repeat_vertex() 70 void test_fish(SkCanvas* canvas, const SkPaint& paint) { in test_fish() 80 void test_fast_forward(SkCanvas* canvas, const SkPaint& paint) { in test_fast_forward() 91 void test_hole(SkCanvas* canvas, const SkPaint& paint) { in test_hole() 102 void test_star(SkCanvas* canvas, const SkPaint& paint) { in test_star() [all …]
|
D | gm.cpp | 34 static void draw_failure_message(SkCanvas* canvas, const char format[], ...) { in draw_failure_message() 51 static void draw_gpu_only_message(SkCanvas* canvas) { in draw_gpu_only_message() 54 SkCanvas bmpCanvas(bmp); in draw_gpu_only_message() 69 static void handle_gm_failure(SkCanvas* canvas, DrawResult result, const SkString& errorMsg) { in handle_gm_failure() 86 DrawResult GM::gpuSetup(GrDirectContext* context, SkCanvas* canvas, SkString* errorMsg) { in gpuSetup() 109 DrawResult GM::draw(SkCanvas* canvas, SkString* errorMsg) { in draw() 115 DrawResult GM::drawContent(SkCanvas* canvas, SkString* errorMsg) { in drawContent() 126 void GM::drawBackground(SkCanvas* canvas) { in drawBackground() 132 DrawResult GM::onDraw(SkCanvas* canvas, SkString* errorMsg) { in onDraw() 136 void GM::onDraw(SkCanvas*) { SK_ABORT("Not implemented."); } in onDraw() argument [all …]
|
D | lattice.cpp | 26 static sk_sp<SkSurface> make_surface(SkCanvas* root, int N, int padLeft, int padTop, in make_surface() 32 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() 39 SkCanvas* canvas = surface->getCanvas(); in make_image() 107 void onDrawHelper(GrDirectContext* dContext, SkCanvas* canvas, int padLeft, int padTop, in onDrawHelper() 133 SkCanvas::Lattice lattice; in onDrawHelper() 176 SkCanvas::Lattice::RectType flags[36]; in onDrawHelper() 177 sk_bzero(flags, 36 * sizeof(SkCanvas::Lattice::RectType)); in onDrawHelper() 178 flags[4] = SkCanvas::Lattice::kTransparent; in onDrawHelper() 179 flags[9] = SkCanvas::Lattice::kTransparent; in onDrawHelper() 180 flags[12] = SkCanvas::Lattice::kTransparent; in onDrawHelper() [all …]
|
/external/skqp/site/user/api/ |
D | SkAutoCanvasRestore_Reference.md | 12 …SkCanvas_star'>SkAutoCanvasRestore</a>(<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>* <a href… 19 Stack helper class calls <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_res… 28 …SkCanvas_star'>SkAutoCanvasRestore</a>(<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>* <a href… 31 …SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_save'>save()</a> count. Optionally saves <a href='SkCan… 36 <td><a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a> to guard</td> 39 …<td>call <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_save'>save()</a></… 45 utility to restore <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a> state on destructor 53 …ref='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_save'>save</a> <a href='SkCanva… 63 Restores <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a> to saved state. Destructor is called wh… 68 …ref='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_save'>save</a> <a href='SkCanva… [all …]
|
/external/skqp/tools/debugger/ |
D | SkDrawCommand.h | 87 virtual void execute(SkCanvas*) const = 0; 89 virtual bool render(SkCanvas* canvas) const { return false; } in render() 107 static void MakeJsonLattice(SkJSONWriter&, const SkCanvas::Lattice& lattice); 124 void execute(SkCanvas* canvas) const override; 133 void execute(SkCanvas* canvas) const override; 145 void execute(SkCanvas* canvas) const override; 146 bool render(SkCanvas* canvas) const override; 160 void execute(SkCanvas* canvas) const override; 173 void execute(SkCanvas* canvas) const override; 187 void execute(SkCanvas* canvas) const override; [all …]
|
/external/skia/tools/debugger/ |
D | DrawCommand.h | 86 virtual void execute(SkCanvas*) const = 0; 88 virtual bool render(SkCanvas* canvas) const { return false; } in render() 107 static void MakeJsonLattice(SkJSONWriter&, const SkCanvas::Lattice& lattice); 126 void execute(SkCanvas* canvas) const override; 135 void execute(SkCanvas* canvas) const override; 147 void execute(SkCanvas* canvas) const override; 148 bool render(SkCanvas* canvas) const override; 162 void execute(SkCanvas* canvas) const override; 175 void execute(SkCanvas* canvas) const override; 189 void execute(SkCanvas* canvas) const override; [all …]
|
/external/skia/src/core/ |
D | SkCanvas.cpp | 79 bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* paint, in wouldOverwriteEntireSurface() 157 void SkCanvas::predrawNotify(bool willOverwritesEntireSurface) { in predrawNotify() 165 void SkCanvas::predrawNotify(const SkRect* rect, const SkPaint* paint, in predrawNotify() 222 class SkCanvas::MCRec { 273 class SkCanvas::AutoUpdateQRBounds { 275 explicit AutoUpdateQRBounds(SkCanvas* canvas) : fCanvas(canvas) { in AutoUpdateQRBounds() 287 SkCanvas* fCanvas; 343 AutoLayerForImageFilter(SkCanvas* canvas, in AutoLayerForImageFilter() 347 SkCanvas::ShaderOverrideOpacity overrideOpacity = in AutoLayerForImageFilter() 348 SkCanvas::kNone_ShaderOverrideOpacity) in AutoLayerForImageFilter() [all …]
|
D | SkCanvasPriv.h | 19 SkAutoCanvasMatrixPaint(SkCanvas*, const SkMatrix*, const SkPaint*, const SkRect& bounds); 23 SkCanvas* fCanvas; 30 static bool ReadLattice(SkReadBuffer&, SkCanvas::Lattice*); 32 static void WriteLattice(SkWriteBuffer&, const SkCanvas::Lattice&); 36 static size_t WriteLattice(void* storage, const SkCanvas::Lattice&); 38 static int SaveBehind(SkCanvas* canvas, const SkRect* subset) { in SaveBehind() 41 static void DrawBehind(SkCanvas* canvas, const SkPaint& paint) { in DrawBehind() 46 static void ReplaceClip(SkCanvas* canvas, const SkIRect& rect) { in ReplaceClip() 50 static GrSurfaceDrawContext* TopDeviceSurfaceDrawContext(SkCanvas* canvas) { in TopDeviceSurfaceDrawContext() 57 static void GetDstClipAndMatrixCounts(const SkCanvas::ImageSetEntry set[], int count,
|
/external/skqp/src/core/ |
D | SkCanvas.cpp | 68 bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* paint, in wouldOverwriteEntireSurface() 149 void SkCanvas::predrawNotify(bool willOverwritesEntireSurface) { in predrawNotify() 157 void SkCanvas::predrawNotify(const SkRect* rect, const SkPaint* paint, in predrawNotify() 225 class SkCanvas::MCRec { 274 SkDrawIter(SkCanvas* canvas) in SkDrawIter() 373 AutoDrawLooper(SkCanvas* canvas, const SkPaint& paint, bool skipLayerForImageFilter = false, in AutoDrawLooper() 413 (void)canvas->internalSaveLayer(SkCanvas::SaveLayerRec(rawBounds, &tmp), in AutoDrawLooper() 414 SkCanvas::kFullLayer_SaveLayerStrategy); in AutoDrawLooper() 456 SkCanvas* fCanvas; 540 void SkCanvas::resetForNextPicture(const SkIRect& bounds) { in resetForNextPicture() [all …]
|
D | SkCanvasPriv.h | 18 SkAutoCanvasMatrixPaint(SkCanvas*, const SkMatrix*, const SkPaint*, const SkRect& bounds); 22 SkCanvas* fCanvas; 29 kDontClipToLayer_SaveLayerFlag = SkCanvas::kDontClipToLayer_PrivateSaveLayerFlag, 33 static bool ReadLattice(SkReadBuffer&, SkCanvas::Lattice*); 35 static void WriteLattice(SkWriteBuffer&, const SkCanvas::Lattice&); 39 static size_t WriteLattice(void* storage, const SkCanvas::Lattice&); 41 static SkCanvas::SaveLayerFlags LegacySaveFlagsToSaveLayerFlags(uint32_t legacySaveFlags); 43 static int SaveBehind(SkCanvas* canvas, const SkRect* subset) { in SaveBehind()
|
D | SkLiteDL.cpp | 74 void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); } in draw() 79 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw() 83 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw() 89 const SkMatrix* clipMatrix, SkCanvas::SaveLayerFlags flags) { in SaveLayer() 102 SkCanvas::SaveLayerFlags flags; 103 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 114 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 122 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw() 128 void draw(SkCanvas* c, const SkMatrix& original) const { in draw() 136 void draw(SkCanvas* c, const SkMatrix&) const { in draw() [all …]
|
/external/skqp/bench/ |
D | Benchmark.h | 31 class SkCanvas; variable 70 void perCanvasPreDraw(SkCanvas*); 71 void perCanvasPostDraw(SkCanvas*); 74 void preDraw(SkCanvas*); 75 void postDraw(SkCanvas*); 78 void draw(int loops, SkCanvas*); 80 virtual void getGpuStats(SkCanvas*, SkTArray<SkString>* keys, SkTArray<double>* values) {} in getGpuStats() argument 88 virtual void onPerCanvasPreDraw(SkCanvas*) {} in onPerCanvasPreDraw() argument 89 virtual void onPerCanvasPostDraw(SkCanvas*) {} in onPerCanvasPostDraw() argument 90 virtual void onPreDraw(SkCanvas*) {} in onPreDraw() argument [all …]
|
/external/skqp/gm/ |
D | bleed.cpp | 211 void drawPixels(SkCanvas* canvas, const TestPixels& pixels, const SkRect& src, in drawPixels() 213 SkCanvas::SrcRectConstraint constraint) { in drawPixels() 222 void drawCase1(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase1() 223 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase1() 239 void drawCase2(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase2() 240 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase2() 255 void drawCase3(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase3() 256 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase3() 274 void drawCase4(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase4() 275 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase4() [all …]
|
D | drawquadset.cpp | 23 static void draw_text(SkCanvas* canvas, const char* text) { in draw_text() 27 static void draw_gradient_tiles(SkCanvas* canvas, bool alignGradients) { in draw_gradient_tiles() 48 unsigned aa = SkCanvas::kNone_QuadAAFlags; in draw_gradient_tiles() 50 aa |= SkCanvas::kTop_QuadAAFlag; in draw_gradient_tiles() 53 aa |= SkCanvas::kBottom_QuadAAFlag; in draw_gradient_tiles() 56 aa |= SkCanvas::kLeft_QuadAAFlag; in draw_gradient_tiles() 59 aa |= SkCanvas::kRight_QuadAAFlag; in draw_gradient_tiles() 76 tile, static_cast<SkCanvas::QuadAAFlags>(aa), color, SkBlendMode::kSrcOver); in draw_gradient_tiles() 87 static void draw_color_tiles(SkCanvas* canvas, bool multicolor) { in draw_color_tiles() 99 unsigned aa = SkCanvas::kNone_QuadAAFlags; in draw_color_tiles() [all …]
|
D | gm.h | 40 static void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas * CANVAS); \ 43 void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas * CANVAS) 61 void draw(SkCanvas*); 62 void drawBackground(SkCanvas*); 63 void drawContent(SkCanvas*); 82 void drawSizeBounds(SkCanvas*, SkColor); 100 static void DrawGpuOnlyMessage(SkCanvas*); 104 virtual void onDraw(SkCanvas*) = 0; 127 void (*drawProc)(SkCanvas*), in SimpleGM() argument 136 void onDraw(SkCanvas* canvas) override; [all …]
|
D | lattice.cpp | 12 static sk_sp<SkSurface> make_surface(SkCanvas* root, int N, int padLeft, int padTop, in make_surface() 18 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() 25 SkCanvas* canvas = surface->getCanvas(); in make_image() 93 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom) { in onDrawHelper() 118 SkCanvas::Lattice lattice; in onDrawHelper() 161 SkCanvas::Lattice::RectType flags[36]; in onDrawHelper() 162 sk_bzero(flags, 36 * sizeof(SkCanvas::Lattice::RectType)); in onDrawHelper() 163 flags[4] = SkCanvas::Lattice::kTransparent; in onDrawHelper() 164 flags[9] = SkCanvas::Lattice::kTransparent; in onDrawHelper() 165 flags[12] = SkCanvas::Lattice::kTransparent; in onDrawHelper() [all …]
|
D | patch.cpp | 25 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points() 40 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, bottom, paint); in draw_control_points() 41 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, bottom + 1, paint); in draw_control_points() 42 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, top, paint); in draw_control_points() 43 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, left, paint); in draw_control_points() 44 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, right, paint); in draw_control_points() 46 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, top + 1, paint); in draw_control_points() 47 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, left + 1, paint); in draw_control_points() 48 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, right + 1, paint); in draw_control_points() 53 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, corners, paint); in draw_control_points() [all …]
|
/external/skia/bench/ |
D | Benchmark.h | 32 class SkCanvas; variable 71 void perCanvasPreDraw(SkCanvas*); 72 void perCanvasPostDraw(SkCanvas*); 75 void preDraw(SkCanvas*); 76 void postDraw(SkCanvas*); 79 void draw(int loops, SkCanvas*); 81 virtual void getGpuStats(SkCanvas*, SkTArray<SkString>* keys, SkTArray<double>* values) {} in getGpuStats() argument 97 virtual void onPerCanvasPreDraw(SkCanvas*) {} in onPerCanvasPreDraw() argument 98 virtual void onPerCanvasPostDraw(SkCanvas*) {} in onPerCanvasPostDraw() argument 99 virtual void onPreDraw(SkCanvas*) {} in onPreDraw() argument [all …]
|
/external/skia/tests/ |
D | CanvasTest.cpp | 95 SkCanvas canvas(10, 10); in DEF_TEST() 124 SkCanvas c(-10, -20); in DEF_TEST() 145 static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_restriction() 187 [reporter](SkCanvas* canvas) { test_restriction(reporter, canvas); }); in DEF_TEST() 191 multi_canvas_driver(50, 50, [reporter](SkCanvas* canvas) { in DEF_TEST() 208 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST() 224 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, in DEF_TEST() 229 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST() 233 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST() 237 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST() [all …]
|
D | PictureTest.cpp | 74 static void rand_op(SkCanvas* canvas, SkRandom& rand) { in rand_op() 94 static void set_canvas_to_save_count_4(SkCanvas* canvas) { in set_canvas_to_save_count_4() 104 class SaveCountingCanvas : public SkCanvas { 145 using INHERITED = SkCanvas; 170 SkCanvas* canvas = recorder2.beginRecording(10, 10); in Copy() 178 static void create_imbalance(SkCanvas* canvas) { in create_imbalance() 195 SkCanvas canvas(bm); in check_balance() 219 SkCanvas* canvas = recorder.beginRecording(10, 10); in DEF_TEST() 242 SkCanvas* canvas = recorder.beginRecording(4, 3); in DEF_TEST() 259 SkCanvas testCanvas(100, 100); in test_unbalanced_save_restores() [all …]
|
/external/skqp/tests/ |
D | CanvasTest.cpp | 96 SkCanvas canvas(10, 10); in DEF_TEST() 125 SkCanvas c(-10, -20); in DEF_TEST() 146 static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_restriction() 188 [reporter](SkCanvas* canvas) { test_restriction(reporter, canvas); }); in DEF_TEST() 192 multi_canvas_driver(50, 50, [reporter](SkCanvas* canvas) { in DEF_TEST() 330 virtual void draw(SkCanvas*, const TestData&, skiatest::Reporter*) = 0; 356 virtual void draw(SkCanvas* canvas, const TestData& d, \ 368 virtual void draw(SkCanvas* canvas, const TestData& d, \ 377 static void NAME##TestStep(SkCanvas* canvas, const TestData& d, \ 384 static void NAME##TestStep(SkCanvas* canvas, const TestData& d, skiatest::Reporter*, \ [all …]
|
/external/skia/include/android/ |
D | SkAndroidFrameworkUtils.h | 16 class SkCanvas; variable 36 static bool clipWithStencil(SkCanvas* canvas); 41 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas); 43 static int SaveBehind(SkCanvas* canvas, const SkRect* subset); 51 static void ReplaceClip(SkCanvas* canvas, const SkIRect* rect = nullptr); 60 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
|