summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp b/chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp
index 149137e441d..19088745806 100644
--- a/chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp
+++ b/chromium/third_party/WebKit/Source/platform/graphics/skia/GaneshUtils.cpp
@@ -61,8 +61,8 @@ 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.setPixelRef(pixelRef, 0)->unref();
+ bitmap.setInfo(info);
+ bitmap.setPixelRef(pixelRef)->unref();
}
return true;