aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-12 17:10:02 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-12 17:10:02 +0000
commitcac8d01eabd05d11365f56b6af3f30bccb173487 (patch)
tree6b544a54d360c7f6fdf01cb372e36865c77d036a /include
parentf14bcd25e57c6f29cdfa7aa95798d9780e6729b8 (diff)
Override drawRRect in fake SkBitmapDevices.
Recent changes to SkBitmapDevice modified ::drawRRect() to take an optimized drawing case. 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. R=reed@google.com, robertphillips@google.com Review URL: https://codereview.chromium.org/70443002 git-svn-id: http://skia.googlecode.com/svn/trunk@12247 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/device/xps/SkXPSDevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/device/xps/SkXPSDevice.h b/include/device/xps/SkXPSDevice.h
index c33e4503a1..e79081c4e8 100644
--- a/include/device/xps/SkXPSDevice.h
+++ b/include/device/xps/SkXPSDevice.h
@@ -85,6 +85,11 @@ protected:
const SkRect& r,
const SkPaint& paint) SK_OVERRIDE;
+ virtual void drawRRect(
+ const SkDraw&,
+ const SkRRect&,
+ const SkPaint& paint) SK_OVERRIDE;
+
virtual void drawPath(
const SkDraw&,
const SkPath& platonicPath,