Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 221ed93ac8c20122ebe47b1c6dccce8defcc3fb9..c10d390f56f61396fa2ddbb55d35ab70637f577c 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -13,6 +13,7 @@ |
#include "SkDrawable.h" |
#include "SkDrawFilter.h" |
#include "SkDrawLooper.h" |
+#include "SkErrorInternals.h" |
#include "SkImage.h" |
#include "SkMetaData.h" |
#include "SkPathOps.h" |
@@ -947,7 +948,8 @@ void SkCanvas::internalSaveLayer(const SkRect* bounds, const SkPaint* paint, Sav |
device = device->onCreateCompatibleDevice(SkBaseDevice::CreateInfo(info, usage, |
fProps.pixelGeometry())); |
if (NULL == device) { |
- SkDebugf("Unable to create device for layer."); |
+ SkErrorInternals::SetError( kInternalError_SkError, |
+ "Unable to create device for layer."); |
return; |
} |