| Index: src/utils/SkPictureUtils.cpp
|
| diff --git a/src/utils/SkPictureUtils.cpp b/src/utils/SkPictureUtils.cpp
|
| index 391e5ffc795d290b49a3920610b116c8dc89c388..3127497ff0b705440e8e28be56e8e5f49ae4c60a 100644
|
| --- a/src/utils/SkPictureUtils.cpp
|
| +++ b/src/utils/SkPictureUtils.cpp
|
| @@ -157,10 +157,10 @@ protected:
|
| virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE {
|
| not_supported();
|
| }
|
| - virtual SkBaseDevice* onCreateDevice(const SkImageInfo& info, Usage usage) SK_OVERRIDE {
|
| + virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo& cinfo) SK_OVERRIDE {
|
| // we expect to only get called via savelayer, in which case it is fine.
|
| - SkASSERT(kSaveLayer_Usage == usage);
|
| - return SkNEW_ARGS(GatherPixelRefDevice, (info.width(), info.height(), fPRSet));
|
| + SkASSERT(kSaveLayer_Usage == cinfo.fUsage);
|
| + return SkNEW_ARGS(GatherPixelRefDevice, (cinfo.fInfo.width(), cinfo.fInfo.height(), fPRSet));
|
| }
|
| virtual void flush() SK_OVERRIDE {}
|
|
|
|
|