Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 43d5bc923c40dbcd675296bfaf86a2a53613a57d..26b76df9beb1515a2b64987bd2c7726c3cdda1f1 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -10,6 +10,7 @@ |
#include "SkBitmapDevice.h" |
#include "SkColorFilter.h" |
#include "SkDeviceImageFilterProxy.h" |
+#include "SkDeviceProperties.h" |
#include "SkDraw.h" |
#include "SkDrawable.h" |
#include "SkDrawFilter.h" |
@@ -1037,7 +1038,8 @@ void SkCanvas::internalSaveLayer(const SkRect* bounds, const SkPaint* paint, Sav |
SkBaseDevice* newDev = device->onCreateDevice(createInfo, paint); |
if (NULL == newDev) { |
// If onCreateDevice didn't succeed, try raster (e.g. PDF couldn't handle the paint) |
- newDev = SkBitmapDevice::Create(createInfo.fInfo); |
+ const SkDeviceProperties deviceProps(createInfo.fPixelGeometry); |
+ newDev = SkBitmapDevice::Create(createInfo.fInfo, &deviceProps); |
if (NULL == newDev) { |
SkErrorInternals::SetError(kInternalError_SkError, |
"Unable to create device for layer."); |