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

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

Issue 1533953002: change signature for virtual related to saveLayer, passing SaveLayerRec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 years 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 void willSave() override; 24 void willSave() override;
25 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride; 25 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
26 void willRestore() override; 26 void willRestore() override;
27 27
28 void didConcat(const SkMatrix&) override; 28 void didConcat(const SkMatrix&) override;
29 void didSetMatrix(const SkMatrix&) override; 29 void didSetMatrix(const SkMatrix&) override;
30 30
31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 31 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
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&) override; 33 const SkPaint&) 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&) override; 35 const SkPaint&) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 private: 70 private:
71 lua_State* fL; 71 lua_State* fL;
72 SkString fFunc; 72 SkString fFunc;
73 73
74 void sendverb(const char verb[]); 74 void sendverb(const char verb[]);
75 75
76 typedef SkCanvas INHERITED; 76 typedef SkCanvas INHERITED;
77 }; 77 };
78 78
79 #endif 79 #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