Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index c0439f5e89b5e8d966e6dc2c21663aa9f24e285f..4c9f0e2b7d5569c6915fddca610fa977f9113e46 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1528,9 +1528,9 @@ void SkGpuDevice::drawDevice(const SkDraw& draw, SkBaseDevice* device, |
return; |
} |
- const SkBitmap& bm = dev->accessBitmap(false); |
- int w = bm.width(); |
- int h = bm.height(); |
+ const SkImageInfo ii = dev->imageInfo(); |
+ int w = ii.width(); |
+ int h = ii.height(); |
SkImageFilter* filter = paint.getImageFilter(); |
// This bitmap will own the filtered result as a texture. |