adding preabandon flag to DM
BUG=skia:
Review URL: https://codereview.chromium.org/929243004
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 221ed93..c10d390 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 @@
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;
}