Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: sky/engine/platform/graphics/skia/GaneshUtils.cpp

Issue 1236953002: Roll Skia to 7b971f0152299ae9a924252a9bfd220318497bdd (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with less crash on startup Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/graphics/Path.cpp ('k') | sky/engine/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « sky/engine/platform/graphics/Path.cpp ('k') | sky/engine/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698