aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGr.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-02-25 14:09:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-25 14:09:46 -0800
commit5f5a8d7599b8e248633ac122294b7a01401fedcb (patch)
treee598536d87f52a473f82123097418fe6e2dccb6d /src/gpu/SkGr.cpp
parent570d2f81a65fc868d6300a7edf34c0d5d048c5d6 (diff)
adding preabandon flag to DM
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r--src/gpu/SkGr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
index b0814af1de..401a50eca8 100644
--- a/src/gpu/SkGr.cpp
+++ b/src/gpu/SkGr.cpp
@@ -11,6 +11,7 @@
#include "SkColorFilter.h"
#include "SkConfig8888.h"
#include "SkData.h"
+#include "SkErrorInternals.h"
#include "SkMessageBus.h"
#include "SkPixelRef.h"
#include "SkResourceCache.h"
@@ -560,8 +561,9 @@ GrTexture* GrRefCachedBitmapTexture(GrContext* ctx,
return result;
}
- SkDebugf("---- failed to create texture for cache [%d %d]\n",
- bitmap.width(), bitmap.height());
+ SkErrorInternals::SetError( kInternalError_SkError,
+ "---- failed to create texture for cache [%d %d]\n",
+ bitmap.width(), bitmap.height());
return NULL;
}