diff options
author | scroggo@google.com <scroggo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 02:53:43 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 02:53:43 +0000 |
commit | bf4f0e2b6ef5533562fae8fcc83ab5e1e404f9e2 (patch) | |
tree | aef41cbdc3268cf8f979ca8cf0caa28596ed270d /skia/ext/analysis_canvas.h | |
parent | a31461138d20673f718e0bd9fb4bb7aa9c1ff993 (diff) | |
download | chromium_src-bf4f0e2b6ef5533562fae8fcc83ab5e1e404f9e2.zip chromium_src-bf4f0e2b6ef5533562fae8fcc83ab5e1e404f9e2.tar.gz chromium_src-bf4f0e2b6ef5533562fae8fcc83ab5e1e404f9e2.tar.bz2 |
Override drawRRect in fake SkBitmapDevices.
Recent changes to SkBitmapDevice modified ::drawRRect() to take an
optimized drawing case (currently hidden behind a flag). Some
subclasses of SkBitmapDevice were depending on the old behavior of
calling ::drawPath(). Since they do not draw, attempting to take
the drawing path can cause problems. For these subclasses, call
drawPath in the subclass.
Review URL: https://codereview.chromium.org/58933005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/analysis_canvas.h')
-rw-r--r-- | skia/ext/analysis_canvas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/skia/ext/analysis_canvas.h b/skia/ext/analysis_canvas.h index 5cbb5d7..00fadac 100644 --- a/skia/ext/analysis_canvas.h +++ b/skia/ext/analysis_canvas.h @@ -86,6 +86,9 @@ class SK_API AnalysisDevice : public SkBitmapDevice { virtual void drawRect(const SkDraw& draw, const SkRect& rect, const SkPaint& paint) OVERRIDE; + virtual void drawRRect(const SkDraw& draw, + const SkRRect& rr, + const SkPaint& paint) OVERRIDE; virtual void drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& paint) OVERRIDE; |