Fix SkXPSDevice
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 5 Feb 2014 23:23:39 +0000 (23:23 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 5 Feb 2014 23:23:39 +0000 (23:23 +0000)
Make SkImageFilter parameter for SkXPSDevice::allowImageFilter const to match
the SkBitmapDevice base class.

BUG=skia:2097
R=senorblanco@chromium.org

Review URL: https://codereview.chromium.org/156213002

git-svn-id: http://skia.googlecode.com/svn/trunk@13333 2bbb7eff-a529-9590-31e7-b0007b416f81

include/device/xps/SkXPSDevice.h
src/device/xps/SkXPSDevice.cpp

index e79081c4e814b6eec16ef5400a7ef3501cce3bff..13ae83492f6054b7855db3a83d1468206c38e1a3 100644 (file)
@@ -148,7 +148,7 @@ protected:
                               int y,
                               SkCanvas::Config8888) SK_OVERRIDE;
 
-    virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE;
+    virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE;
 
 private:
     class TypefaceUse : ::SkNoncopyable {
index c407e2c0d7f59d26139937a39301756e84af6b1f..f2658de1047d3149f358aaa159379c959248d415 100644 (file)
@@ -2453,6 +2453,6 @@ SkXPSDevice::SkXPSDevice(IXpsOMObjectFactory* xpsFactory)
          "Could not create canvas for layer.");
 }
 
-bool SkXPSDevice::allowImageFilter(SkImageFilter*) {
+bool SkXPSDevice::allowImageFilter(const SkImageFilter*) {
     return false;
 }