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

Side by Side Diff: include/utils/SkNWayCanvas.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/SkLuaCanvas.h ('k') | include/utils/SkNoSaveLayerCanvas.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkNWayCanvas_DEFINED 9 #ifndef SkNWayCanvas_DEFINED
10 #define SkNWayCanvas_DEFINED 10 #define SkNWayCanvas_DEFINED
(...skipping 12 matching lines...) Expand all
23 23
24 /////////////////////////////////////////////////////////////////////////// 24 ///////////////////////////////////////////////////////////////////////////
25 // These are forwarded to the N canvases we're referencing 25 // These are forwarded to the N canvases we're referencing
26 26
27 SkDrawFilter* setDrawFilter(SkDrawFilter*) override; 27 SkDrawFilter* setDrawFilter(SkDrawFilter*) override;
28 28
29 protected: 29 protected:
30 SkTDArray<SkCanvas*> fList; 30 SkTDArray<SkCanvas*> fList;
31 31
32 void willSave() override; 32 void willSave() override;
33 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride; 33 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
34 void willRestore() override; 34 void willRestore() override;
35 35
36 void didConcat(const SkMatrix&) override; 36 void didConcat(const SkMatrix&) override;
37 void didSetMatrix(const SkMatrix&) override; 37 void didSetMatrix(const SkMatrix&) override;
38 38
39 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 39 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
40 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 40 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
41 const SkPaint&) override; 41 const SkPaint&) override;
42 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 42 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
43 const SkPaint&) override; 43 const SkPaint&) override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 79 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
80 80
81 class Iter; 81 class Iter;
82 82
83 private: 83 private:
84 typedef SkCanvas INHERITED; 84 typedef SkCanvas INHERITED;
85 }; 85 };
86 86
87 87
88 #endif 88 #endif
OLDNEW
« no previous file with comments | « include/utils/SkLuaCanvas.h ('k') | include/utils/SkNoSaveLayerCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698