Home
last modified time | relevance | path

Searched defs:canvas (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/external/skia/gm/
Dconcavepaths.cpp17 void test_concave(SkCanvas* canvas, const SkPaint& paint) { in test_concave()
28 void test_reverse_concave(SkCanvas* canvas, const SkPaint& paint) { in test_reverse_concave()
41 void test_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_bowtie()
54 void test_fake_bowtie(SkCanvas* canvas, const SkPaint& paint) { in test_fake_bowtie()
69 void test_fish(SkCanvas* canvas, const SkPaint& paint) { in test_fish()
84 void test_collinear_edges(SkCanvas* canvas, const SkPaint& paint) { in test_collinear_edges()
97 void test_hole(SkCanvas* canvas, const SkPaint& paint) { in test_hole()
114 void test_star(SkCanvas* canvas, const SkPaint& paint) { in test_star()
129 void test_stairstep(SkCanvas* canvas, const SkPaint& paint) { in test_stairstep()
143 void test_stairstep2(SkCanvas* canvas, const SkPaint& paint) { in test_stairstep2()
[all …]
Dgm.cpp22 void GM::draw(SkCanvas* canvas) { in draw()
27 void GM::drawContent(SkCanvas* canvas) { in drawContent()
35 void GM::drawBackground(SkCanvas* canvas) { in drawBackground()
60 void GM::onDrawBackground(SkCanvas* canvas) { in onDrawBackground()
64 void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) { in drawSizeBounds()
73 void GM::DrawGpuOnlyMessage(SkCanvas* canvas) { in DrawGpuOnlyMessage()
100 void skiagm::SimpleGM::onDraw(SkCanvas* canvas) { in onDraw()
Daaclip.cpp16 static void draw(SkCanvas* canvas, SkRect& target, int x, int y) { in draw()
39 static void draw_square(SkCanvas* canvas, int x, int y) { in draw_square()
44 static void draw_column(SkCanvas* canvas, int x, int y) { in draw_column()
49 static void draw_bar(SkCanvas* canvas, int x, int y) { in draw_bar()
54 static void draw_rect_tests(SkCanvas* canvas) { in draw_rect_tests()
82 void onDraw(SkCanvas* canvas) override { in onDraw()
126 static void test_image(SkCanvas* canvas, const SkImageInfo& info) { in test_image()
165 void onDraw(SkCanvas* canvas) override { in onDraw()
224 void doDraw(SkCanvas* canvas, const SkPath& path) { in doDraw()
236 void drawAndClip(SkCanvas* canvas, const SkPath& path, SkScalar dx, SkScalar dy) { in drawAndClip()
[all …]
Dsrcmode.cpp38 static void draw_hair(SkCanvas* canvas, const SkPaint& paint) { in draw_hair()
44 static void draw_thick(SkCanvas* canvas, const SkPaint& paint) { in draw_thick()
50 static void draw_rect(SkCanvas* canvas, const SkPaint& paint) { in draw_rect()
54 static void draw_oval(SkCanvas* canvas, const SkPaint& paint) { in draw_oval()
58 static void draw_text(SkCanvas* canvas, const SkPaint& paint) { in draw_text()
80 void drawContent(SkCanvas* canvas) { in drawContent()
120 static SkSurface* compat_surface(SkCanvas* canvas, const SkISize& size, bool skipGPU) { in compat_surface()
137 virtual void onDraw(SkCanvas* canvas) { in onDraw()
Dimagefilterscropped.cpp23 static void draw_paint(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_paint()
33 static void draw_path(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_path()
41 static void draw_text(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_text()
52 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_bitmap()
83 SkCanvas canvas(fCheckerboard); in make_checkerboard() local
102 void draw_frame(SkCanvas* canvas, const SkRect& r) { in draw_frame()
113 virtual void onDraw(SkCanvas* canvas) override { in onDraw()
Ddropshadowimagefilter.cpp16 static void draw_paint(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_paint()
26 static void draw_path(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_path()
37 static void draw_text(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_text()
51 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { in draw_bitmap()
84 void draw_frame(SkCanvas* canvas, const SkRect& r) { in draw_frame()
91 virtual void onDraw(SkCanvas* canvas) { in onDraw()
Dshowmiplevels.cpp26 SkCanvas canvas(bm); in make_bitmap() local
39 SkCanvas canvas(bm); in make_bitmap2() local
59 SkCanvas canvas(bm); in make_bitmap3() local
128 static void DrawAndFrame(SkCanvas* canvas, const SkBitmap& orig, SkScalar x, SkScalar y) { in DrawAndFrame()
140 template <typename F> void drawLevels(SkCanvas* canvas, const SkBitmap& baseBM, F func) { in drawLevels()
171 void drawSet(SkCanvas* canvas, const SkBitmap& orig) { in drawSet()
201 void onDraw(SkCanvas* canvas) override { in onDraw()
244 static void DrawAndFrame(SkCanvas* canvas, const SkBitmap& bm, SkScalar x, SkScalar y) { in DrawAndFrame()
252 void drawLevels(SkCanvas* canvas, const SkBitmap& baseBM) { in drawLevels()
279 void drawSet(SkCanvas* canvas, const SkBitmap& orig) { in drawSet()
[all …]
Dfilterfastbounds.cpp24 static void draw_rect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_rect()
28 static void draw_oval(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_oval()
32 static void draw_rrect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_rrect()
41 static void draw_drrect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_drrect()
52 static void draw_path(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_path()
63 static void draw_points(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_points()
71 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in draw_bitmap()
181 SkCanvas* canvas, const SkPaint& p) { in draw_geom_with_paint()
210 SkCanvas* canvas, in draw_savelayer_with_paint()
238 void onDraw(SkCanvas* canvas) override{ in onDraw()
Dthinrects.cpp28 void onDraw(SkCanvas* canvas) override { in onDraw()
67 static void DrawVertRects(SkCanvas* canvas, const SkPaint& p) { in DrawVertRects()
83 static void DrawHorizRects(SkCanvas* canvas, const SkPaint& p) { in DrawHorizRects()
99 static void DrawSquares(SkCanvas* canvas, const SkPaint& p) { in DrawSquares()
Dmultipicturedraw.cpp60 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), in make_hex_plane_picture() local
111 SkCanvas* canvas = recorder.beginRecording(kBig, kBig, &bbhFactory, in make_single_layer_hex_plane_picture() local
166 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), in make_tri_picture() local
186 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), in make_sub_picture() local
221 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), in make_sierpinski_picture() local
244 static SkSurface* create_compat_surface(SkCanvas* canvas, int width, int height) { in create_compat_surface()
275 static void no_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in no_clip()
280 static void rect_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in rect_clip()
292 static void rrect_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in rrect_clip()
307 static void path_clip(SkCanvas* canvas, const SkPicture* pictures[kNumPictures]) { in path_clip()
[all …]
Dpixelsnap.cpp35 void onDraw(SkCanvas* canvas) override { in onDraw()
112 void drawElement(SkCanvas* canvas) override { canvas->drawPoint(1, 1, SK_ColorBLUE); } in drawElement()
121 void drawElement(SkCanvas* canvas) override { in drawElement()
136 void drawElement(SkCanvas* canvas) override { in drawElement()
149 void drawElement(SkCanvas* canvas) override { in drawElement()
/external/skia/tools/VisualBench/
DWrappedBenchmark.h33 void onPerCanvasPreDraw(SkCanvas* canvas) override { in onPerCanvasPreDraw()
38 void onPreDraw(SkCanvas* canvas) override { in onPreDraw()
42 void onPostDraw(SkCanvas* canvas) override { in onPostDraw()
46 void onPerCanvasPostDraw(SkCanvas* canvas) override { in onPerCanvasPostDraw()
51 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
62 void blitToScreen(SkCanvas* canvas) { in blitToScreen()
82 void setupOffScreen(SkCanvas* canvas) override { in setupOffScreen()
86 void onBlitToScreen(SkCanvas* canvas, int w, int h) override { in onBlitToScreen()
106 void setupOffScreen(SkCanvas* canvas) override { in setupOffScreen()
114 void onBlitToScreen(SkCanvas* canvas, int w, int h) override { in onBlitToScreen()
DVisualStreamTimingModule.cpp20 inline void VisualStreamTimingModule::handleInitState(SkCanvas* canvas) { in handleInitState()
37 inline void VisualStreamTimingModule::handleTimingEvent(SkCanvas* canvas, in handleTimingEvent()
67 void VisualStreamTimingModule::draw(SkCanvas* canvas) { in draw()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DCanvasTest.java28 Canvas canvas = new Canvas(targetBitmap); in shouldDescribeBitmapDrawing() local
41 Canvas canvas = new Canvas(targetBitmap); in shouldDescribeBitmapDrawing_WithMatrix() local
54 Canvas canvas = new Canvas(targetBitmap); in visualize_shouldReturnDescription() local
65 Canvas canvas = new Canvas(targetBitmap); in drawColor_shouldReturnDescription() local
75 Canvas canvas = new Canvas(targetBitmap); in drawPath_shouldRecordThePathAndThePaint() local
91 Canvas canvas = new Canvas(targetBitmap); in drawPath_shouldAppendDescriptionToBitmap() local
/external/skia/bench/
DBenchmark.cpp40 void Benchmark::perCanvasPreDraw(SkCanvas* canvas) { in perCanvasPreDraw()
44 void Benchmark::preDraw(SkCanvas* canvas) { in preDraw()
48 void Benchmark::postDraw(SkCanvas* canvas) { in postDraw()
52 void Benchmark::perCanvasPostDraw(SkCanvas* canvas) { in perCanvasPostDraw()
56 void Benchmark::draw(int loops, SkCanvas* canvas) { in draw()
DGeometryBench.cpp68 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
85 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
102 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
118 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
151 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
167 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
185 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
201 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
219 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
235 void onDraw(int loops, SkCanvas* canvas) override { in onDraw()
/external/skia/experimental/SkV8Example/
DDrawingMethods.cpp27 SkCanvas* canvas = drawingMethods->getCanvas(); in Save() local
37 SkCanvas* canvas = drawingMethods->getCanvas(); in Restore() local
47 SkCanvas* canvas = drawingMethods->getCanvas(); in Rotate() local
64 SkCanvas* canvas = drawingMethods->getCanvas(); in Translate() local
82 SkCanvas* canvas = drawingMethods->getCanvas(); in ResetTransform() local
92 SkCanvas* canvas = drawingMethods->getCanvas(); in DrawPath() local
124 SkCanvas* canvas = drawingMethods->getCanvas(); in GetWidth() local
137 SkCanvas* canvas = drawingMethods->getCanvas(); in GetHeight() local
/external/skia/tests/
DPictureTest.cpp66 SkCanvas* canvas = recorder.beginRecording(100, 100); in test_analysis() local
117 static void rand_op(SkCanvas* canvas, SkRandom& rand) { in rand_op()
142 SkCanvas* canvas = recorder.beginRecording(100, 100); in test_gpu_veto() local
483 SkCanvas* canvas = recorder.beginRecording(100,100); in test_has_text() local
543 static void set_canvas_to_save_count_4(SkCanvas* canvas) { in set_canvas_to_save_count_4()
592 SaveCountingCanvas canvas(SkScalarCeilToInt(picture->cullRect().width()), in check_save_state() local
611 SkCanvas* canvas = recorder2.beginRecording(10, 10); in Copy() local
619 static void create_imbalance(SkCanvas* canvas) { in create_imbalance()
636 SkCanvas canvas(bm); in check_balance() local
664 SkCanvas* canvas = recorder.beginRecording(10, 10); in DEF_TEST() local
[all …]
DRecordReplaceDrawTest.cpp41 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in DEF_TEST() local
50 SkRecorder canvas(&rerecord, kWidth, kHeight); in DEF_TEST() local
75 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in DEF_TEST() local
84 SkRecorder canvas(&rerecord, kWidth, kHeight); in DEF_TEST() local
98 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in test_replacements() local
133 SkRecorder canvas(&rerecord, kWidth, kHeight); in test_replacements() local
DMatrixClipCollapseTest.cpp154 static void emit_clip(SkCanvas* canvas, ClipType clip) { in emit_clip()
224 static void emit_mat(SkCanvas* canvas, MatType mat) { in emit_mat()
283 static void emit_draw(SkCanvas* canvas, DrawOpType draw, SkTDArray<DrawType>* expected) { in emit_draw()
325 static void emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, in emit_clip_and_mat()
346 static void emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, in emit_mat_and_clip()
369 static void emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, in emit_double_mat_and_clip()
394 static void emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, in emit_mat_clip_clip()
417 static void emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body0()
438 static void emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body1()
466 static void emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body2()
[all …]
DPDFDocumentTest.cpp30 SkCanvas* canvas = doc->beginPage(100, 100); in test_abort() local
54 SkCanvas* canvas = doc->beginPage(100, 100); in test_abortWithFile() local
80 SkCanvas* canvas = doc->beginPage(100, 100); in test_file() local
98 SkCanvas* canvas = doc->beginPage(100, 100); in test_close() local
142 SkCanvas* canvas = doc->beginPage(64, 64); in count_bytes() local
162 SkCanvas* canvas = doc->beginPage(64, 64); in DEF_TEST() local
/external/skia/src/core/
DSkDrawable.cpp26 static void draw_bbox(SkCanvas* canvas, const SkRect& r) { in draw_bbox()
35 void SkDrawable::draw(SkCanvas* canvas, const SkMatrix* matrix) { in draw()
47 void SkDrawable::draw(SkCanvas* canvas, SkScalar x, SkScalar y) { in draw()
79 SkCanvas* canvas = recorder.beginRecording(bounds, nullptr, 0); in onNewPictureSnapshot() local
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
DSeriesRenderer.java50 public void render(Canvas canvas, RectF plotArea) throws PlotRenderException { in render()
53 public abstract void onRender(Canvas canvas, RectF plotArea) throws PlotRenderException; in onRender()
60 …protected abstract void doDrawLegendIcon(Canvas canvas, RectF rect, SeriesFormatterType formatter); in doDrawLegendIcon()
62 public void drawSeriesLegendIcon(Canvas canvas, RectF rect, SeriesFormatterType formatter) { in drawSeriesLegendIcon()
/external/skia/samplecode/
DSampleClip.cpp20 static void show_text(SkCanvas* canvas, bool doAA) { in show_text()
35 static void show_fill(SkCanvas* canvas, bool doAA) { in show_fill()
62 static void show_stroke(SkCanvas* canvas, bool doAA, SkScalar strokeWidth, int n) { in show_stroke()
95 static void show_hair(SkCanvas* canvas, bool doAA) { in show_hair()
99 static void show_thick(SkCanvas* canvas, bool doAA) { in show_thick()
128 virtual void onDrawContent(SkCanvas* canvas) { in onDrawContent()
DSampleArc.cpp54 void onDraw(SkCanvas* canvas) override { in onDraw()
116 static void DrawRectWithLines(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { in DrawRectWithLines()
124 static void DrawLabel(SkCanvas* canvas, const SkRect& rect, SkScalar start, SkScalar sweep) { in DrawLabel()
139 static void DrawArcs(SkCanvas* canvas) { in DrawArcs()
181 void drawRoot(SkCanvas* canvas) { in drawRoot()
194 void onDrawContent(SkCanvas* canvas) override { in onDrawContent()

12345678910>>...28