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

Unified Diff: Source/platform/graphics/skia/GaneshUtils.cpp

Issue 201213002: Remove uses of SkBitmap::Config (deprecated) from core/ and platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: schenney comments Created 6 years, 9 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
Index: Source/platform/graphics/skia/GaneshUtils.cpp
diff --git a/Source/platform/graphics/skia/GaneshUtils.cpp b/Source/platform/graphics/skia/GaneshUtils.cpp
index 7053444d0ed25e12a9e6bbc30678e479ef5deb2e..fdf51e2b67ad89602ea9da32ca0dcb76d6760fc4 100644
--- a/Source/platform/graphics/skia/GaneshUtils.cpp
+++ b/Source/platform/graphics/skia/GaneshUtils.cpp
@@ -61,7 +61,7 @@ bool ensureTextureBackedSkBitmap(GrContext* gr, SkBitmap& bitmap, const IntSize&
SkGrPixelRef* pixelRef = SkNEW_ARGS(SkGrPixelRef, (info, texture.get()));
if (!pixelRef)
return false;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height());
+ bitmap.setConfig(info);
bitmap.setPixelRef(pixelRef)->unref();
}
« no previous file with comments | « Source/platform/graphics/UnacceleratedImageBufferSurface.cpp ('k') | Source/platform/image-decoders/ImageFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698