diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-21 12:20:45 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-21 12:20:45 +0000 |
commit | ab5827354e2c23624acc3fc1fe4a83788bc99e96 (patch) | |
tree | bd2f93c0c642b3ba13ac55279680692e87a2c164 /include | |
parent | b39d5617f60e8c26f76011cfcd984d7ad42d9fa9 (diff) |
override new virtual onDrawDRRect in util canvas subclasses
BUG=skia:
R=robertphillips@google.com, reed@google.com
Author: reed@chromium.org
Review URL: https://codereview.chromium.org/174593003
git-svn-id: http://skia.googlecode.com/svn/trunk@13529 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/SkDeferredCanvas.h | 4 | ||||
-rw-r--r-- | include/utils/SkDumpCanvas.h | 4 | ||||
-rw-r--r-- | include/utils/SkLuaCanvas.h | 3 | ||||
-rw-r--r-- | include/utils/SkNWayCanvas.h | 2 | ||||
-rw-r--r-- | include/utils/SkProxyCanvas.h | 3 |
5 files changed, 16 insertions, 0 deletions
diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h index b0435de9bd..d028282ef2 100644 --- a/include/utils/SkDeferredCanvas.h +++ b/include/utils/SkDeferredCanvas.h @@ -200,6 +200,10 @@ public: virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; +protected: + virtual void onDrawDRRect(const SkRRect&, const SkRRect&, + const SkPaint&) SK_OVERRIDE; + public: class NotificationClient { public: diff --git a/include/utils/SkDumpCanvas.h b/include/utils/SkDumpCanvas.h index 96b45e7ba2..7b65f43c68 100644 --- a/include/utils/SkDumpCanvas.h +++ b/include/utils/SkDumpCanvas.h @@ -40,6 +40,7 @@ public: kDrawOval_Verb, kDrawRect_Verb, kDrawRRect_Verb, + kDrawDRRect_Verb, kDrawPath_Verb, kDrawBitmap_Verb, kDrawText_Verb, @@ -126,6 +127,9 @@ public: virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; virtual void endCommentGroup() SK_OVERRIDE; +protected: + virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRIDE; + private: Dumper* fDumper; int fNestLevel; // for nesting recursive elements like pictures diff --git a/include/utils/SkLuaCanvas.h b/include/utils/SkLuaCanvas.h index c34d134423..be1cf4d049 100644 --- a/include/utils/SkLuaCanvas.h +++ b/include/utils/SkLuaCanvas.h @@ -72,6 +72,9 @@ public: const SkPaint& paint) SK_OVERRIDE; virtual void drawData(const void* data, size_t length) SK_OVERRIDE; +protected: + virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRIDE; + private: lua_State* fL; SkString fFunc; diff --git a/include/utils/SkNWayCanvas.h b/include/utils/SkNWayCanvas.h index eae3bfc538..d83dd6ed77 100644 --- a/include/utils/SkNWayCanvas.h +++ b/include/utils/SkNWayCanvas.h @@ -86,6 +86,8 @@ public: protected: SkTDArray<SkCanvas*> fList; + virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRIDE; + class Iter; private: diff --git a/include/utils/SkProxyCanvas.h b/include/utils/SkProxyCanvas.h index 383e532fbf..f192e54a51 100644 --- a/include/utils/SkProxyCanvas.h +++ b/include/utils/SkProxyCanvas.h @@ -85,6 +85,9 @@ public: virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; +protected: + virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRIDE; + private: SkCanvas* fProxy; |