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

Unified Diff: include/utils/SkNWayCanvas.h

Issue 23865004: Add SkCanvasStack and update the Canvas utilities to use it. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: comments Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: include/utils/SkNWayCanvas.h
diff --git a/include/utils/SkNWayCanvas.h b/include/utils/SkNWayCanvas.h
index 3bb2c97232826328debc140316b134a5a980171e..c48bcab3c4d4b74ebe3f5f332469196c8afbb42e 100644
--- a/include/utils/SkNWayCanvas.h
+++ b/include/utils/SkNWayCanvas.h
@@ -16,9 +16,9 @@ public:
SkNWayCanvas(int width, int height);
virtual ~SkNWayCanvas();
- void addCanvas(SkCanvas*);
- void removeCanvas(SkCanvas*);
- void removeAll();
+ virtual void addCanvas(SkCanvas*);
+ virtual void removeCanvas(SkCanvas*);
+ virtual void removeAll();
///////////////////////////////////////////////////////////////////////////
// These are forwarded to the N canvases we're referencing
@@ -79,11 +79,12 @@ public:
virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
virtual void endCommentGroup() SK_OVERRIDE;
-private:
+protected:
SkTDArray<SkCanvas*> fList;
class Iter;
+private:
typedef SkCanvas INHERITED;
};
« no previous file with comments | « gyp/utils.gyp ('k') | src/utils/SkCanvasStack.h » ('j') | src/utils/SkCanvasStack.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698