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

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

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals Created 4 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
« 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 56 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
57 const SkPaint*, SrcRectConstraint) override; 57 const SkPaint*, SrcRectConstraint) override;
58 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 58 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
59 const SkPaint*) override; 59 const SkPaint*) override;
60 void onDrawVertices(VertexMode vmode, int vertexCount, 60 void onDrawVertices(VertexMode vmode, int vertexCount,
61 const SkPoint vertices[], const SkPoint texs[], 61 const SkPoint vertices[], const SkPoint texs[],
62 const SkColor colors[], SkXfermode* xmode, 62 const SkColor colors[], SkXfermode* xmode,
63 const uint16_t indices[], int indexCount, 63 const uint16_t indices[], int indexCount,
64 const SkPaint&) override; 64 const SkPaint&) override;
65 65
66 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 66 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override;
67 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 67 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override;
68 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 68 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override;
69 void onClipRegion(const SkRegion&, SkRegion::Op) override; 69 void onClipRegion(const SkRegion&, ClipOp) override;
70 70
71 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 71 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
72 72
73 private: 73 private:
74 lua_State* fL; 74 lua_State* fL;
75 SkString fFunc; 75 SkString fFunc;
76 76
77 void sendverb(const char verb[]); 77 void sendverb(const char verb[]);
78 78
79 typedef SkCanvas INHERITED; 79 typedef SkCanvas INHERITED;
80 }; 80 };
81 81
82 #endif 82 #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