Searched refs:canvas (Results 1 - 25 of 2055) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/experimental/Intersection/
H A DEdgeDemo.h3 bool DrawEdgeDemo(SkCanvas* canvas, int step, bool useOld);
/external/skia/experimental/Intersection/
H A DEdgeDemo.h3 bool DrawEdgeDemo(SkCanvas* canvas, int step, bool useOld);
/external/chromium_org/third_party/skia/samplecode/
H A DSamplePicture.cpp49 static void drawCircle(SkCanvas* canvas, int r, SkColor color) { argument
54 canvas->drawCircle(SkIntToScalar(r), SkIntToScalar(r), SkIntToScalar(r),
70 SkCanvas* canvas = recorder.beginRecording(100, 100, NULL, 0); local
74 canvas->drawBitmap(fBitmap, 0, 0, NULL);
76 drawCircle(canvas, 50, SK_ColorBLACK);
77 canvas->drawPicture(fSubPicture);
78 canvas->translate(SkIntToScalar(50), 0);
79 canvas->drawPicture(fSubPicture);
80 canvas->translate(0, SkIntToScalar(50));
81 canvas
107 drawSomething(SkCanvas* canvas) argument
132 onDrawContent(SkCanvas* canvas) argument
[all...]
H A DSampleFillType.cpp40 void showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, argument
45 canvas->save();
46 canvas->translate(SkIntToScalar(x), SkIntToScalar(y));
47 canvas->clipRect(r);
48 canvas->drawColor(SK_ColorWHITE);
50 canvas->translate(r.centerX(), r.centerY());
51 canvas->scale(scale, scale);
52 canvas->translate(-r.centerX(), -r.centerY());
53 canvas->drawPath(fPath, paint);
54 canvas
57 showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) argument
68 onDrawContent(SkCanvas* canvas) argument
[all...]
/external/skia/samplecode/
H A DSamplePicture.cpp50 static void drawCircle(SkCanvas* canvas, int r, SkColor color) { argument
55 canvas->drawCircle(SkIntToScalar(r), SkIntToScalar(r), SkIntToScalar(r),
71 SkCanvas* canvas = recorder.beginRecording(100, 100, NULL, 0); local
75 canvas->drawBitmap(fBitmap, 0, 0, NULL);
77 drawCircle(canvas, 50, SK_ColorBLACK);
78 canvas->drawPicture(fSubPicture);
79 canvas->translate(SkIntToScalar(50), 0);
80 canvas->drawPicture(fSubPicture);
81 canvas->translate(0, SkIntToScalar(50));
82 canvas
108 drawSomething(SkCanvas* canvas) argument
133 onDrawContent(SkCanvas* canvas) argument
[all...]
/external/chromium_org/skia/ext/
H A Danalysis_canvas_unittest.cc16 void SolidColorFill(skia::AnalysisCanvas& canvas) { argument
17 canvas.clear(SkColorSetARGB(255, 255, 255, 255));
20 void TransparentFill(skia::AnalysisCanvas& canvas) { argument
21 canvas.clear(SkColorSetARGB(0, 0, 0, 0));
28 skia::AnalysisCanvas canvas(255, 255);
31 EXPECT_TRUE(canvas.GetColorIfSolid(&color));
36 skia::AnalysisCanvas canvas(255, 255);
40 canvas.clear(color);
43 EXPECT_TRUE(canvas.GetColorIfSolid(&outputColor));
48 canvas
[all...]
H A Dplatform_device.cc21 void SetBoolMetaData(const SkCanvas& canvas, const char* key, bool value) { argument
22 SkMetaData& meta = skia::getMetaData(canvas);
26 bool GetBoolMetaData(const SkCanvas& canvas, const char* key) { argument
28 SkMetaData& meta = skia::getMetaData(canvas);
52 SkMetaData& getMetaData(const SkCanvas& canvas) { argument
53 SkBaseDevice* device = canvas.getDevice();
58 void SetIsDraftMode(const SkCanvas& canvas, bool draft_mode) { argument
59 SetBoolMetaData(canvas, kDraftModeKey, draft_mode);
62 bool IsDraftMode(const SkCanvas& canvas) { argument
63 return GetBoolMetaData(canvas, kDraftModeKe
67 SetIsPreviewMetafile(const SkCanvas& canvas, bool is_preview) argument
71 IsPreviewMetafile(const SkCanvas& canvas) argument
[all...]
/external/chromium_org/content/test/data/gpu/functional_files/
H A Dcontext.js8 initializeWebGL = function(canvas) {
11 gl_context = canvas.getContext("webgl") ||
12 canvas.getContext("experimental-webgl");
20 var canvas = document.getElementById("glcanvas");
22 initializeWebGL(canvas);
/external/chromium_org/third_party/skia/gm/
H A Dpathreverse.cpp13 static void test_path(SkCanvas* canvas, const SkPath& path) { argument
16 canvas->drawPath(path, paint);
20 canvas->drawPath(path, paint);
23 static void test_rev(SkCanvas* canvas, const SkPath& path) { argument
24 test_path(canvas, path);
28 canvas->save();
29 canvas->translate(150, 0);
30 test_path(canvas, rev);
31 canvas->restore();
34 static void test_rev(SkCanvas* canvas) { argument
83 onDraw(SkCanvas* canvas) argument
[all...]
H A Dthinrects.cpp28 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
39 canvas->save();
40 canvas->translate(i*0.125f, i*40.0f);
41 DrawVertRects(canvas, white);
43 canvas->translate(40.0f, 0.0f);
44 DrawVertRects(canvas, green);
45 canvas->restore();
47 canvas->save();
48 canvas->translate(80.0f, i*40.0f + i*0.125f);
49 DrawHorizRects(canvas, whit
67 DrawVertRects(SkCanvas* canvas, const SkPaint& p) argument
83 DrawHorizRects(SkCanvas* canvas, const SkPaint& p) argument
99 DrawSquares(SkCanvas* canvas, const SkPaint& p) argument
[all...]
H A Dinternal_links.cpp35 virtual void onDraw(SkCanvas* canvas) { argument
38 canvas->save();
39 canvas->translate(SkIntToScalar(100), SkIntToScalar(100));
40 drawLabeledRect(canvas, "Link to A", 0, 0);
42 SkAnnotateLinkToDestination(canvas, rect, name.get());
43 canvas->restore();
45 canvas->save();
46 canvas->translate(SkIntToScalar(200), SkIntToScalar(200));
48 drawLabeledRect(canvas, "Target A", point.x(), point.y());
49 SkAnnotateNamedDestination(canvas, poin
56 drawLabeledRect(SkCanvas* canvas, const char* text, SkScalar x, SkScalar y) argument
[all...]
H A Dthinstrokedrects.cpp28 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
42 canvas->translate(5, 5);
44 canvas->save();
45 canvas->translate(i*0.125f, i*30.0f);
48 canvas->drawRect(rect, paint);
49 canvas->translate(15, 0);
51 canvas->restore();
56 canvas->translate(0, 15);
58 canvas->save();
59 canvas
[all...]
H A Dbitmapsource.cpp26 SkCanvas canvas(fBitmap);
27 canvas.clear(0x00000000);
34 canvas.drawText(str, strlen(str), SkIntToScalar(20), SkIntToScalar(70), paint);
43 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { argument
46 canvas->save();
47 canvas->clipRect(clipRect);
48 canvas->drawPaint(paint);
49 canvas->restore();
52 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
53 canvas
[all...]
H A Dspritebitmap.cpp16 SkCanvas canvas(*bm);
20 canvas.drawCircle(50, 50, 50, paint);
23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, argument
25 SkAutoCanvasRestore acr(canvas, true);
37 canvas->save();
38 canvas->clipRect(clipR);
40 canvas->drawSprite(bm, dx, dy, &paint);
42 canvas->restore();
45 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
48 canvas
77 onDraw(SkCanvas* canvas) argument
[all...]
H A Dstroketext.cpp12 static void test_nulldev(SkCanvas* canvas) { argument
27 static void draw_text_stroked(SkCanvas* canvas, const SkPaint& paint, SkScalar strokeWidth) { argument
33 canvas->drawText("P", 1, loc.fX, loc.fY - 225, p);
34 canvas->drawPosText("P", 1, &loc, p);
41 canvas->drawText("P", 1, loc.fX, loc.fY - 225, p);
42 canvas->drawPosText("P", 1, &loc, p);
45 static void draw_text_set(SkCanvas* canvas, const SkPaint& paint) { argument
46 SkAutoCanvasRestore acr(canvas, true);
48 draw_text_stroked(canvas, paint, 10);
50 canvas
87 if (true) { test_nulldev(canvas); } variable
[all...]
H A Dfilltypes.cpp40 void showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, argument
45 canvas->save();
46 canvas->translate(SkIntToScalar(x), SkIntToScalar(y));
47 canvas->clipRect(r);
48 canvas->drawColor(SK_ColorWHITE);
50 canvas->translate(r.centerX(), r.centerY());
51 canvas->scale(scale, scale);
52 canvas->translate(-r.centerX(), -r.centerY());
53 canvas->drawPath(fPath, paint);
54 canvas
57 showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) argument
68 onDraw(SkCanvas* canvas) argument
[all...]
/external/skia/gm/
H A Dpathreverse.cpp13 static void test_path(SkCanvas* canvas, const SkPath& path) { argument
16 canvas->drawPath(path, paint);
20 canvas->drawPath(path, paint);
23 static void test_rev(SkCanvas* canvas, const SkPath& path) { argument
24 test_path(canvas, path);
28 canvas->save();
29 canvas->translate(150, 0);
30 test_path(canvas, rev);
31 canvas->restore();
34 static void test_rev(SkCanvas* canvas) { argument
84 onDraw(SkCanvas* canvas) argument
[all...]
H A Dthinrects.cpp28 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
39 canvas->save();
40 canvas->translate(i*0.125f, i*40.0f);
41 DrawVertRects(canvas, white);
43 canvas->translate(40.0f, 0.0f);
44 DrawVertRects(canvas, green);
45 canvas->restore();
47 canvas->save();
48 canvas->translate(80.0f, i*40.0f + i*0.125f);
49 DrawHorizRects(canvas, whit
67 DrawVertRects(SkCanvas* canvas, const SkPaint& p) argument
83 DrawHorizRects(SkCanvas* canvas, const SkPaint& p) argument
99 DrawSquares(SkCanvas* canvas, const SkPaint& p) argument
[all...]
H A Dinternal_links.cpp35 virtual void onDraw(SkCanvas* canvas) { argument
38 canvas->save();
39 canvas->translate(SkIntToScalar(100), SkIntToScalar(100));
40 drawLabeledRect(canvas, "Link to A", 0, 0);
42 SkAnnotateLinkToDestination(canvas, rect, name.get());
43 canvas->restore();
45 canvas->save();
46 canvas->translate(SkIntToScalar(200), SkIntToScalar(200));
48 drawLabeledRect(canvas, "Target A", point.x(), point.y());
49 SkAnnotateNamedDestination(canvas, poin
56 drawLabeledRect(SkCanvas* canvas, const char* text, SkScalar x, SkScalar y) argument
[all...]
H A Dthinstrokedrects.cpp32 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
46 canvas->translate(5, 5);
48 canvas->save();
49 canvas->translate(i*0.125f, i*30.0f);
52 canvas->drawRect(rect, paint);
53 canvas->translate(15, 0);
55 canvas->restore();
60 canvas->translate(0, 15);
62 canvas->save();
63 canvas
[all...]
H A Dbitmapsource.cpp26 SkCanvas canvas(fBitmap);
27 canvas.clear(0x00000000);
33 canvas.drawText(str, strlen(str), SkIntToScalar(20), SkIntToScalar(70), paint);
42 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { argument
45 canvas->save();
46 canvas->clipRect(clipRect);
47 canvas->drawPaint(paint);
48 canvas->restore();
51 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
52 canvas
[all...]
H A Dspritebitmap.cpp16 SkCanvas canvas(*bm);
20 canvas.drawCircle(50, 50, 50, paint);
23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, argument
25 SkAutoCanvasRestore acr(canvas, true);
37 canvas->save();
38 canvas->clipRect(clipR);
40 canvas->drawSprite(bm, dx, dy, &paint);
42 canvas->restore();
45 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
48 canvas
77 onDraw(SkCanvas* canvas) argument
[all...]
H A Dstroketext.cpp12 static void test_nulldev(SkCanvas* canvas) { argument
27 static void draw_text_stroked(SkCanvas* canvas, const SkPaint& paint, SkScalar strokeWidth) { argument
33 canvas->drawText("P", 1, loc.fX, loc.fY - 225, p);
34 canvas->drawPosText("P", 1, &loc, p);
41 canvas->drawText("P", 1, loc.fX, loc.fY - 225, p);
42 canvas->drawPosText("P", 1, &loc, p);
45 static void draw_text_set(SkCanvas* canvas, const SkPaint& paint) { argument
46 SkAutoCanvasRestore acr(canvas, true);
48 draw_text_stroked(canvas, paint, 10);
50 canvas
87 if (true) { test_nulldev(canvas); } variable
[all...]
H A Dfilltypes.cpp40 void showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, argument
45 canvas->save();
46 canvas->translate(SkIntToScalar(x), SkIntToScalar(y));
47 canvas->clipRect(r);
48 canvas->drawColor(SK_ColorWHITE);
50 canvas->translate(r.centerX(), r.centerY());
51 canvas->scale(scale, scale);
52 canvas->translate(-r.centerX(), -r.centerY());
53 canvas->drawPath(fPath, paint);
54 canvas
57 showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) argument
68 onDraw(SkCanvas* canvas) argument
[all...]
/external/chromium_org/third_party/skia/tests/
H A DCanvasStateHelpers.cpp16 void complex_layers_draw(SkCanvas* canvas, float left, float top, argument
23 canvas->drawRect(rect, bluePaint);
24 canvas->translate(0, rect.height() + spacer);
25 canvas->drawRect(rect, bluePaint);
30 SkCanvas* canvas = SkCanvasStateUtils::CreateFromCanvasState(state); local
31 if (!canvas) {
34 complex_layers_draw(canvas, left, top, right, bottom, spacer);
35 canvas->unref();
39 void complex_clips_draw(SkCanvas* canvas, int32_t left, int32_t top, argument
41 canvas
55 SkCanvas* canvas = SkCanvasStateUtils::CreateFromCanvasState(state); local
[all...]

Completed in 463 milliseconds

1234567891011>>