Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Side by Side Diff: include/utils/SkLuaCanvas.h

Issue 35543002: Revert "If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get be… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/utils/SkDumpCanvas.h ('k') | include/utils/SkNWayCanvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkLuaCanvas_DEFINED 8 #ifndef SkLuaCanvas_DEFINED
9 #define SkLuaCanvas_DEFINED 9 #define SkLuaCanvas_DEFINED
10 10
(...skipping 24 matching lines...) Expand all
35 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 35 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
36 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 36 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE;
37 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; 37 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE;
38 virtual bool clipRegion(const SkRegion& deviceRgn, 38 virtual bool clipRegion(const SkRegion& deviceRgn,
39 SkRegion::Op) SK_OVERRIDE; 39 SkRegion::Op) SK_OVERRIDE;
40 40
41 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 41 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
42 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 42 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
43 const SkPaint& paint) SK_OVERRIDE; 43 const SkPaint& paint) SK_OVERRIDE;
44 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; 44 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
45 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
45 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; 46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE;
47 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE;
46 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 48 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
47 const SkPaint* paint) SK_OVERRIDE; 49 const SkPaint* paint) SK_OVERRIDE;
48 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 50 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
49 const SkRect& dst, const SkPaint* paint, 51 const SkRect& dst, const SkPaint* paint,
50 DrawBitmapRectFlags flags) SK_OVERRIDE; 52 DrawBitmapRectFlags flags) SK_OVERRIDE;
51 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 53 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
52 const SkPaint* paint) SK_OVERRIDE; 54 const SkPaint* paint) SK_OVERRIDE;
53 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 55 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
54 const SkPaint* paint) SK_OVERRIDE; 56 const SkPaint* paint) SK_OVERRIDE;
55 virtual void drawText(const void* text, size_t byteLength, SkScalar x, 57 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
56 SkScalar y, const SkPaint& paint) SK_OVERRIDE; 58 SkScalar y, const SkPaint& paint) SK_OVERRIDE;
57 virtual void drawPosText(const void* text, size_t byteLength, 59 virtual void drawPosText(const void* text, size_t byteLength,
58 const SkPoint pos[], const SkPaint& paint) SK_OVERR IDE; 60 const SkPoint pos[], const SkPaint& paint) SK_OVERR IDE;
59 virtual void drawPosTextH(const void* text, size_t byteLength, 61 virtual void drawPosTextH(const void* text, size_t byteLength,
60 const SkScalar xpos[], SkScalar constY, 62 const SkScalar xpos[], SkScalar constY,
61 const SkPaint& paint) SK_OVERRIDE; 63 const SkPaint& paint) SK_OVERRIDE;
62 virtual void drawTextOnPath(const void* text, size_t byteLength, 64 virtual void drawTextOnPath(const void* text, size_t byteLength,
63 const SkPath& path, const SkMatrix* matrix, 65 const SkPath& path, const SkMatrix* matrix,
64 const SkPaint& paint) SK_OVERRIDE; 66 const SkPaint& paint) SK_OVERRIDE;
65 virtual void drawPicture(SkPicture&) SK_OVERRIDE; 67 virtual void drawPicture(SkPicture&) SK_OVERRIDE;
66 virtual void drawVertices(VertexMode vmode, int vertexCount, 68 virtual void drawVertices(VertexMode vmode, int vertexCount,
67 const SkPoint vertices[], const SkPoint texs[], 69 const SkPoint vertices[], const SkPoint texs[],
68 const SkColor colors[], SkXfermode* xmode, 70 const SkColor colors[], SkXfermode* xmode,
69 const uint16_t indices[], int indexCount, 71 const uint16_t indices[], int indexCount,
70 const SkPaint& paint) SK_OVERRIDE; 72 const SkPaint& paint) SK_OVERRIDE;
71 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 73 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
72 74
73 protected:
74 virtual void onDrawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
75 virtual void onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRID E;
76
77 private: 75 private:
78 lua_State* fL; 76 lua_State* fL;
79 SkString fFunc; 77 SkString fFunc;
80 78
81 void sendverb(const char verb[]); 79 void sendverb(const char verb[]);
82 80
83 typedef SkCanvas INHERITED; 81 typedef SkCanvas INHERITED;
84 }; 82 };
85 83
86 #endif 84 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDumpCanvas.h ('k') | include/utils/SkNWayCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698