Index: sky/engine/platform/graphics/skia/GaneshUtils.cpp |
diff --git a/sky/engine/platform/graphics/skia/GaneshUtils.cpp b/sky/engine/platform/graphics/skia/GaneshUtils.cpp |
index 18b16fa5e8acbd76c34f50870e2ea6dad50802ac..05bcac32a0748cb72e9ea5e8683f69a76bcf2f39 100644 |
--- a/sky/engine/platform/graphics/skia/GaneshUtils.cpp |
+++ b/sky/engine/platform/graphics/skia/GaneshUtils.cpp |
@@ -42,12 +42,12 @@ bool ensureTextureBackedSkBitmap(GrContext* gr, SkBitmap& bitmap, const IntSize& |
return false; |
GrTextureDesc desc; |
desc.fConfig = config; |
- desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit; |
+ desc.fFlags = kRenderTarget_GrSurfaceFlag; |
desc.fSampleCnt = 0; |
desc.fOrigin = origin; |
desc.fWidth = size.width(); |
desc.fHeight = size.height(); |
- SkAutoTUnref<GrTexture> texture(gr->createUncachedTexture(desc, 0, 0)); |
+ SkAutoTUnref<GrTexture> texture(gr->textureProvider()->createTexture(desc, false, 0, 0)); |
if (!texture.get()) |
return false; |