| Index: src/gpu/SkGr.cpp | 
| diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp | 
| index b0814af1de931f79b896faaa74ef494a67c82b54..401a50eca8b53145b17734b652271ce993a1707e 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; | 
| } | 
|  |