/external/skia/bench/ |
D | Benchmark.h | 31 class SkCanvas; variable 77 void perCanvasPreDraw(SkCanvas*); 78 void perCanvasPostDraw(SkCanvas*); 81 void preDraw(SkCanvas*); 82 void postDraw(SkCanvas*); 85 void draw(int loops, SkCanvas*); 117 void preTimingHooks(SkCanvas* canvas) { in preTimingHooks() 122 void postTimingHooks(SkCanvas* canvas) { in postTimingHooks() 127 virtual void getGpuStats(SkCanvas*, SkTArray<SkString>* keys, SkTArray<double>* values) {} in getGpuStats() argument 135 virtual void onPerCanvasPreDraw(SkCanvas*) {} in onPerCanvasPreDraw() argument [all …]
|
D | RectBench.cpp | 44 virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) { in drawThisRect() 69 void onDraw(int loops, SkCanvas* canvas) override { in onDraw() 141 void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) override { in drawThisRect() 151 void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) override { in drawThisRect() 159 SkCanvas::PointMode fMode; 161 PointsBench(SkCanvas::PointMode mode, const char* name) in PointsBench() 168 void onDraw(int loops, SkCanvas* canvas) override { in onDraw() 210 SkCanvas::PointMode fMode; 212 BlitMaskBench(SkCanvas::PointMode mode, in BlitMaskBench() 219 void onDraw(int loops, SkCanvas* canvas) override { in onDraw() [all …]
|
/external/skia/src/core/ |
D | SkCanvas.cpp | 87 void drawPoints(SkCanvas::PointMode, size_t, const SkPoint[], const SkPaint&) override {} in drawPoints() 95 SkCanvas::SrcRectConstraint) override {} in drawBitmapRect() 116 bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* paint, in wouldOverwriteEntireSurface() 172 void SkCanvas::Internal_Private_SetIgnoreSaveLayerBounds(bool ignore) { in Internal_Private_SetIgnoreSaveLayerBounds() 175 bool SkCanvas::Internal_Private_GetIgnoreSaveLayerBounds() { in Internal_Private_GetIgnoreSaveLayerBounds() 180 void SkCanvas::Internal_Private_SetTreatSpriteAsBitmap(bool spriteAsBitmap) { in Internal_Private_SetTreatSpriteAsBitmap() 183 bool SkCanvas::Internal_Private_GetTreatSpriteAsBitmap() { in Internal_Private_GetTreatSpriteAsBitmap() 213 void SkCanvas::predrawNotify(bool willOverwritesEntireSurface) { in predrawNotify() 221 void SkCanvas::predrawNotify(const SkRect* rect, const SkPaint* paint, in predrawNotify() 281 class SkCanvas::MCRec { [all …]
|
D | SkLiteDL.cpp | 77 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 86 void draw(SkCanvas* c, const SkMatrix&) const { c->save(); } in draw() 90 void draw(SkCanvas* c, const SkMatrix&) const { c->restore(); } in draw() 96 const SkMatrix* clipMatrix, SkCanvas::SaveLayerFlags flags) { in SaveLayer() 109 SkCanvas::SaveLayerFlags flags; 110 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 120 void draw(SkCanvas* c, const SkMatrix&) const { c->concat(matrix); } in draw() 126 void draw(SkCanvas* c, const SkMatrix& original) const { in draw() 134 void draw(SkCanvas* c, const SkMatrix&) const { in draw() 145 void draw(SkCanvas* c, const SkMatrix&) const { c->clipPath(path, op, aa); } in draw() [all …]
|
/external/skia/tools/debugger/ |
D | SkDrawCommand.h | 90 virtual void execute(SkCanvas*) const = 0; 91 virtual void vizExecute(SkCanvas*) const {} in vizExecute() argument 112 virtual bool render(SkCanvas* canvas) const { return false; } in render() 136 static Json::Value MakeJsonLattice(const SkCanvas::Lattice& lattice); 156 void execute(SkCanvas* canvas) const override; 167 void execute(SkCanvas* canvas) const override; 180 void execute(SkCanvas* canvas) const override; 181 bool render(SkCanvas* canvas) const override; 196 void execute(SkCanvas* canvas) const override; 210 void execute(SkCanvas* canvas) const override; [all …]
|
/external/skia/gm/ |
D | bleed.cpp | 212 void drawPixels(SkCanvas* canvas, const TestPixels& pixels, const SkRect& src, in drawPixels() 214 SkCanvas::SrcRectConstraint constraint) { in drawPixels() 223 void drawCase1(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase1() 224 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase1() 240 void drawCase2(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase2() 241 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase2() 256 void drawCase3(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase3() 257 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase3() 275 void drawCase4(SkCanvas* canvas, int transX, int transY, bool aa, in drawCase4() 276 SkCanvas::SrcRectConstraint constraint, SkFilterQuality filter) { in drawCase4() [all …]
|
D | gm.h | 38 static void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas * CANVAS); \ 41 void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas * CANVAS) 59 void draw(SkCanvas*); 60 void drawBackground(SkCanvas*); 61 void drawContent(SkCanvas*); 90 void drawSizeBounds(SkCanvas*, SkColor); 110 static void DrawGpuOnlyMessage(SkCanvas*); 114 virtual void onDraw(SkCanvas*) = 0; 115 virtual void onDrawBackground(SkCanvas*); 137 void (*drawProc)(SkCanvas*), in SimpleGM() argument [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 …]
|
D | OverStroke.cpp | 110 void draw_ribs(SkCanvas *canvas, SkPath path) { in draw_ribs() 122 void draw_small_quad(SkCanvas *canvas) { in draw_small_quad() 133 void draw_large_quad(SkCanvas *canvas) { in draw_large_quad() 141 void draw_quad_fillpath(SkCanvas *canvas) { in draw_quad_fillpath() 154 void draw_stroked_quad(SkCanvas *canvas) { in draw_stroked_quad() 162 void draw_small_cubic(SkCanvas *canvas) { in draw_small_cubic() 170 void draw_large_cubic(SkCanvas *canvas) { in draw_large_cubic() 178 void draw_cubic_fillpath(SkCanvas *canvas) { in draw_cubic_fillpath() 191 void draw_stroked_cubic(SkCanvas *canvas) { in draw_stroked_cubic() 199 void draw_small_oval(SkCanvas *canvas) { in draw_small_oval() [all …]
|
D | concavepaths.cpp | 14 void test_concave(SkCanvas* canvas, const SkPaint& paint) { in test_concave() 25 void test_reverse_concave(SkCanvas* canvas, const SkPaint& paint) { in test_reverse_concave() 38 void test_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie() 51 void test_fake_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_fake_bowtie() 67 void test_intruding_vertex(SkCanvas* canvas, const SkPaint& paint) { in test_intruding_vertex() 84 void test_inversion_repeat_vertex(SkCanvas* canvas, const SkPaint& paint) { in test_inversion_repeat_vertex() 100 void test_fish(SkCanvas* canvas, const SkPaint& paint) { in test_fish() 116 void test_fast_forward(SkCanvas* canvas, const SkPaint& paint) { in test_fast_forward() 131 void test_hole(SkCanvas* canvas, const SkPaint& paint) { in test_hole() 148 void test_star(SkCanvas* canvas, const SkPaint& paint) { in test_star() [all …]
|
D | aaclip.cpp | 14 static void do_draw(SkCanvas* canvas, const SkRect& r) { in do_draw() 58 SkCanvas::SaveLayerRec rec; 77 static void draw(SkCanvas* canvas, SkRect& target, int x, int y) { in draw() 100 static void draw_square(SkCanvas* canvas, int x, int y) { in draw_square() 105 static void draw_column(SkCanvas* canvas, int x, int y) { in draw_column() 110 static void draw_bar(SkCanvas* canvas, int x, int y) { in draw_bar() 115 static void draw_rect_tests(SkCanvas* canvas) { in draw_rect_tests() 143 void onDraw(SkCanvas* canvas) override { in onDraw() 175 static std::unique_ptr<SkCanvas> make_canvas(const SkBitmap& bm) { 178 return SkCanvas::MakeRasterDirectN32(info.width(), info.height(), [all …]
|
D | gm.cpp | 23 void GM::draw(SkCanvas* canvas) { in draw() 28 void GM::drawContent(SkCanvas* canvas) { in drawContent() 36 void GM::drawBackground(SkCanvas* canvas) { in drawBackground() 61 void GM::onDrawBackground(SkCanvas* canvas) { in onDrawBackground() 65 void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) { in drawSizeBounds() 74 void GM::DrawGpuOnlyMessage(SkCanvas* canvas) { in DrawGpuOnlyMessage() 77 SkCanvas bmpCanvas(bmp); in DrawGpuOnlyMessage() 100 void skiagm::SimpleGM::onDraw(SkCanvas* canvas) { in onDraw()
|
D | srcmode.cpp | 31 typedef void (*Proc)(SkCanvas*, const SkPaint&); 33 static void draw_hair(SkCanvas* canvas, const SkPaint& paint) { in draw_hair() 39 static void draw_thick(SkCanvas* canvas, const SkPaint& paint) { in draw_thick() 45 static void draw_rect(SkCanvas* canvas, const SkPaint& paint) { in draw_rect() 49 static void draw_oval(SkCanvas* canvas, const SkPaint& paint) { in draw_oval() 53 static void draw_text(SkCanvas* canvas, const SkPaint& paint) { in draw_text() 75 void drawContent(SkCanvas* canvas) { in drawContent() 115 static sk_sp<SkSurface> compat_surface(SkCanvas* canvas, const SkISize& size, bool skipGPU) { in compat_surface() 132 virtual void onDraw(SkCanvas* canvas) { in onDraw()
|
D | filterfastbounds.cpp | 24 typedef void(*drawMth)(SkCanvas* canvas, const SkRect& r, const SkPaint& p); 26 static void draw_rect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_rect() 30 static void draw_oval(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_oval() 34 static void draw_rrect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_rrect() 43 static void draw_drrect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_drrect() 54 static void draw_path(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_path() 65 static void draw_points(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_points() 69 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, pts0, p); in draw_points() 70 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, pts1, p); in draw_points() 73 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_bitmap() [all …]
|
D | lattice.cpp | 11 static sk_sp<SkSurface> make_surface(SkCanvas* root, int N, int padLeft, int padTop, in make_surface() 22 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() 29 SkCanvas* canvas = surface->getCanvas(); in make_image() 97 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom) { in onDrawHelper() 122 SkCanvas::Lattice lattice; in onDrawHelper() 151 SkCanvas::Lattice::Flags flags[36]; in onDrawHelper() 152 sk_bzero(flags, 36 * sizeof(SkCanvas::Lattice::Flags)); in onDrawHelper() 153 flags[4] = SkCanvas::Lattice::kTransparent_Flags; in onDrawHelper() 154 flags[9] = SkCanvas::Lattice::kTransparent_Flags; in onDrawHelper() 155 flags[12] = SkCanvas::Lattice::kTransparent_Flags; in onDrawHelper() [all …]
|
/external/skia/tests/ |
D | CanvasTest.cpp | 72 SkCanvas canvas(10, 10); in DEF_TEST() 101 SkCanvas c(-10, -20); in DEF_TEST() 122 static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_restriction() 164 [reporter](SkCanvas* canvas) { test_restriction(reporter, canvas); }); in DEF_TEST() 168 multi_canvas_driver(50, 50, [reporter](SkCanvas* canvas) { in DEF_TEST() 306 virtual void draw(SkCanvas*, const TestData&, skiatest::Reporter*) = 0; 332 virtual void draw(SkCanvas* canvas, const TestData& d, \ 344 virtual void draw(SkCanvas* canvas, const TestData& d, \ 353 static void NAME##TestStep(SkCanvas* canvas, const TestData& d, \ 360 static void NAME##TestStep(SkCanvas* canvas, const TestData& d, \ [all …]
|
D | CanvasStateTest.cpp | 77 const SkCanvas::SaveLayerFlags flags[] = { in DEF_TEST() 78 static_cast<SkCanvas::SaveLayerFlags>(SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag), in DEF_TEST() 80 static_cast<SkCanvas::SaveLayerFlags>(SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag), in DEF_TEST() 107 SkCanvas canvas(bitmaps[j]); in DEF_TEST() 118 canvas.saveLayer(SkCanvas::SaveLayerRec(&rect, paint.getMaybeNull(), flags[k])); in DEF_TEST() 184 const SkCanvas::SaveLayerFlags flags[] = { in DEF_TEST() 185 static_cast<SkCanvas::SaveLayerFlags>(SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag), in DEF_TEST() 187 static_cast<SkCanvas::SaveLayerFlags>(SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag), in DEF_TEST() 212 SkCanvas canvas(bitmaps[i]); in DEF_TEST() 222 canvas.saveLayer(SkCanvas::SaveLayerRec(&layerBounds, &paint, flags[j])); in DEF_TEST() [all …]
|
D | PictureTest.cpp | 65 SkCanvas* canvas = recorder.beginRecording(100, 100); in test_analysis() 114 static void rand_op(SkCanvas* canvas, SkRandom& rand) { in rand_op() 158 SkCanvas* canvas = recorder.beginRecording(100, 100); in test_gpu_veto() 260 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, points, paint); in test_gpu_veto() 320 static void set_canvas_to_save_count_4(SkCanvas* canvas) { in set_canvas_to_save_count_4() 330 class SaveCountingCanvas : public SkCanvas { 363 typedef SkCanvas INHERITED; 388 SkCanvas* canvas = recorder2.beginRecording(10, 10); in Copy() 396 static void create_imbalance(SkCanvas* canvas) { in create_imbalance() 413 SkCanvas canvas(bm); in check_balance() [all …]
|
D | PictureBBHTest.cpp | 29 virtual void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) = 0; 42 SkCanvas playbackCanvas(fResultBitmap); in run() 45 SkCanvas* recordCanvas = recorder.beginRecording(SkIntToScalar(fPictureWidth), in run() 66 void doTest(SkCanvas&, SkCanvas&) override {} in doTest() argument 77 void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) override { in doTest()
|
/external/skia/samplecode/ |
D | PerlinPatch.cpp | 15 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points() 30 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, bottom, paint); in draw_control_points() 31 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, bottom + 1, paint); in draw_control_points() 32 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, top, paint); in draw_control_points() 33 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, left, paint); in draw_control_points() 34 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, right, paint); in draw_control_points() 36 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, top + 1, paint); in draw_control_points() 37 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, left + 1, paint); in draw_control_points() 38 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, right + 1, paint); in draw_control_points() 43 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, corners, paint); in draw_control_points() [all …]
|
D | SampleApp.h | 32 class SkCanvas; variable 96 SkCanvas* canvas, 130 void draw(SkCanvas*) override; 166 void onDraw(SkCanvas* canvas) override; 171 SkCanvas* beforeChildren(SkCanvas*) override; 172 void afterChildren(SkCanvas*) override; 173 void beforeChild(SkView* child, SkCanvas* canvas) override; 194 std::unique_ptr<SkCanvas> fFlagsFilterCanvas; 261 void magnify(SkCanvas* canvas); 262 void showZoomer(SkCanvas* canvas);
|
D | SampleFatBits.cpp | 106 void drawBG(SkCanvas*); 107 void drawFG(SkCanvas*); 108 void drawLine(SkCanvas*, SkPoint pts[2]); 109 void drawRect(SkCanvas* canvas, SkPoint pts[2]); 110 void drawTriangle(SkCanvas* canvas, SkPoint pts[3]); 147 void drawTriangleSkeleton(SkCanvas* max, const SkPoint pts[]); 148 void drawLineSkeleton(SkCanvas* max, const SkPoint pts[]); 149 void drawRectSkeleton(SkCanvas* max, const SkRect& r) { in drawRectSkeleton() 160 SkCanvas* canvas = fMaxSurface->getCanvas(); in copyMinToMax() 179 void FatBits::drawBG(SkCanvas* canvas) { in drawBG() [all …]
|
/external/skia/src/image/ |
D | SkSurface_Base.h | 36 virtual SkCanvas* onNewCanvas() = 0; 57 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*); 96 inline SkCanvas* getCachedCanvas(); 105 std::unique_ptr<SkCanvas> fCachedCanvas; 114 friend class SkCanvas; variable 120 SkCanvas* SkSurface_Base::getCachedCanvas() { in getCachedCanvas() 122 fCachedCanvas = std::unique_ptr<SkCanvas>(this->onNewCanvas()); in getCachedCanvas()
|
/external/skia/src/pipe/ |
D | SkPipeReader.cpp | 24 static bool do_playback(SkPipeReader& reader, SkCanvas* canvas, int* endPictureIndex = nullptr); 227 typedef void (*SkPipeHandler)(SkPipeReader&, uint32_t packedVerb, SkCanvas*); 229 static void save_handler(SkPipeReader& reader, uint32_t packedVerb, SkCanvas* canvas) { in save_handler() 234 static void saveLayer_handler(SkPipeReader& reader, uint32_t packedVerb, SkCanvas* canvas) { in saveLayer_handler() 255 SkCanvas::SaveLayerFlags flags = (SkCanvas::SaveLayerFlags)(extra & kFlags_SaveLayerMask); in saveLayer_handler() 262 canvas->saveLayer(SkCanvas::SaveLayerRec(bounds, paint, backdrop.get(), clipMask.get(), in saveLayer_handler() 266 static void restore_handler(SkPipeReader& reader, uint32_t packedVerb, SkCanvas* canvas) { in restore_handler() 271 static void concat_handler(SkPipeReader& reader, uint32_t packedVerb, SkCanvas* canvas) { in concat_handler() 282 static void clipRect_handler(SkPipeReader& reader, uint32_t packedVerb, SkCanvas* canvas) { in clipRect_handler() 289 static void clipRRect_handler(SkPipeReader& reader, uint32_t packedVerb, SkCanvas* canvas) { in clipRRect_handler() [all …]
|
/external/skia/site/user/api/ |
D | canvas.md | 1 Creating SkCanvas Objects 4 First, read about [the SkCanvas API](skcanvas). 6 Skia has multiple backends which receive SkCanvas drawing commands, 17 Each backend has a unique way of creating a SkCanvas. This page gives 38 void (*draw)(SkCanvas*), 42 SkCanvas* rasterCanvas = rasterSurface->getCanvas(); 60 void (*draw)(SkCanvas*)) { 68 SkCanvas* canvas = surface->getCanvas(); 94 void gl_example(int width, int height, void (*draw)(SkCanvas*), const char* path) { 109 SkCanvas* gpuCanvas = gpuSurface->getCanvas(); [all …]
|