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

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

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkString.h" 12 #include "SkString.h"
13 13
14 struct lua_State; 14 struct lua_State;
15 15
16 class SkLuaCanvas : public SkCanvas { 16 class SkLuaCanvas : public SkCanvas {
17 public: 17 public:
18 void pushThis(); 18 void pushThis();
19 19
20 SkLuaCanvas(int width, int height, lua_State*, const char function[]); 20 SkLuaCanvas(int width, int height, lua_State*, const char function[]);
21 virtual ~SkLuaCanvas(); 21 virtual ~SkLuaCanvas();
22 22
23 protected: 23 protected:
24 virtual void willSave() SK_OVERRIDE; 24 void willSave() SK_OVERRIDE;
25 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 25 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK _OVERRIDE;
26 virtual void willRestore() SK_OVERRIDE; 26 void willRestore() SK_OVERRIDE;
27 27
28 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 28 void didConcat(const SkMatrix&) SK_OVERRIDE;
29 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 29 void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
30 30
31 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E;
32 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 32 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
33 const SkPaint&) SK_OVERRIDE; 33 const SkPaint&) SK_OVERRIDE;
34 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 34 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
35 const SkPaint&) SK_OVERRIDE; 35 const SkPaint&) SK_OVERRIDE;
36 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 36 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
37 SkScalar constY, const SkPaint&) SK_OVERRIDE; 37 SkScalar constY, const SkPaint&) SK_OVERRIDE;
38 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 38 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
39 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 39 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
40 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 40 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
41 const SkPaint& paint) SK_OVERRIDE; 41 const SkPaint& paint) SK_OVERRIDE;
(...skipping 12 matching lines...) Expand all
54 const SkPaint*) SK_OVERRIDE; 54 const SkPaint*) SK_OVERRIDE;
55 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 55 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
56 const SkPaint*) SK_OVERRIDE; 56 const SkPaint*) SK_OVERRIDE;
57 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE; 57 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE;
58 void onDrawVertices(VertexMode vmode, int vertexCount, 58 void onDrawVertices(VertexMode vmode, int vertexCount,
59 const SkPoint vertices[], const SkPoint texs[], 59 const SkPoint vertices[], const SkPoint texs[],
60 const SkColor colors[], SkXfermode* xmode, 60 const SkColor colors[], SkXfermode* xmode,
61 const uint16_t indices[], int indexCount, 61 const uint16_t indices[], int indexCount,
62 const SkPaint&) SK_OVERRIDE; 62 const SkPaint&) SK_OVERRIDE;
63 63
64 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 64 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
65 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 65 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
66 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 66 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
67 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; 67 void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
68 68
69 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE; 69 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
70 70
71 private: 71 private:
72 lua_State* fL; 72 lua_State* fL;
73 SkString fFunc; 73 SkString fFunc;
74 74
75 void sendverb(const char verb[]); 75 void sendverb(const char verb[]);
76 76
77 typedef SkCanvas INHERITED; 77 typedef SkCanvas INHERITED;
78 }; 78 };
79 79
80 #endif 80 #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