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

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

Issue 1153593003: Remove the SkCanvas comment API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years, 6 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') | src/core/SkPictureFlat.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
11 11
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 13
14 class SK_API SkNWayCanvas : public SkCanvas { 14 class SK_API SkNWayCanvas : public SkCanvas {
15 public: 15 public:
16 SkNWayCanvas(int width, int height); 16 SkNWayCanvas(int width, int height);
17 virtual ~SkNWayCanvas(); 17 virtual ~SkNWayCanvas();
18 18
19 virtual void addCanvas(SkCanvas*); 19 virtual void addCanvas(SkCanvas*);
20 virtual void removeCanvas(SkCanvas*); 20 virtual void removeCanvas(SkCanvas*);
21 virtual void removeAll(); 21 virtual void removeAll();
22 22
23 /////////////////////////////////////////////////////////////////////////// 23 ///////////////////////////////////////////////////////////////////////////
24 // These are forwarded to the N canvases we're referencing 24 // These are forwarded to the N canvases we're referencing
25 25
26 SkDrawFilter* setDrawFilter(SkDrawFilter*) override; 26 SkDrawFilter* setDrawFilter(SkDrawFilter*) override;
27 27
28 void beginCommentGroup(const char* description) override;
29 void addComment(const char* kywd, const char* value) override;
30 void endCommentGroup() override;
31
32 protected: 28 protected:
33 SkTDArray<SkCanvas*> fList; 29 SkTDArray<SkCanvas*> fList;
34 30
35 void willSave() override; 31 void willSave() override;
36 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride; 32 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride;
37 void willRestore() override; 33 void willRestore() override;
38 34
39 void didConcat(const SkMatrix&) override; 35 void didConcat(const SkMatrix&) override;
40 void didSetMatrix(const SkMatrix&) override; 36 void didSetMatrix(const SkMatrix&) override;
41 37
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 79 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
84 80
85 class Iter; 81 class Iter;
86 82
87 private: 83 private:
88 typedef SkCanvas INHERITED; 84 typedef SkCanvas INHERITED;
89 }; 85 };
90 86
91 87
92 #endif 88 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDumpCanvas.h ('k') | src/core/SkPictureFlat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698