diff options
author | 2013-02-01 20:39:48 +0000 | |
---|---|---|
committer | 2013-02-01 20:39:48 +0000 | |
commit | 50a5cfb1a57961f021b1463679e065dfb1ebf3f9 (patch) | |
tree | 9d4d7f1d6859afe0902a19c7cbfb381929b4e187 | |
parent | 84a1802b072d76657261eada3018955283ab29d2 (diff) |
Accelerate handling of clipRRect in calls to SkPictureUtils::GatherPixelRefs
BUG=https://code.google.com/p/chromium/issues/detail?id=173718
Review URL: https://codereview.appspot.com/7252048
git-svn-id: http://skia.googlecode.com/svn/trunk@7527 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/utils/SkPictureUtils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/SkPictureUtils.cpp b/src/utils/SkPictureUtils.cpp index d8041df3ba..de4b4405d3 100644 --- a/src/utils/SkPictureUtils.cpp +++ b/src/utils/SkPictureUtils.cpp @@ -11,6 +11,7 @@ #include "SkDevice.h" #include "SkPixelRef.h" #include "SkShader.h" +#include "SkRRect.h" class PixelRefSet { public: @@ -181,6 +182,10 @@ public: bool doAA) SK_OVERRIDE { return this->INHERITED::clipRect(path.getBounds(), op, false); } + virtual bool clipRRect(const SkRRect& rrect, SkRegion::Op op, + bool doAA) SK_OVERRIDE { + return this->INHERITED::clipRect(rrect.getBounds(), op, false); + } private: typedef SkCanvas INHERITED; |