Index: content/shell/renderer/test_runner/TestPlugin.cpp |
diff --git a/content/shell/renderer/test_runner/TestPlugin.cpp b/content/shell/renderer/test_runner/TestPlugin.cpp |
index 22f56f5ad3d5035833e6e524b9f5acfd01ebb792..49606d54cf315e35d1ae65725e4acac6108d91a3 100644 |
--- a/content/shell/renderer/test_runner/TestPlugin.cpp |
+++ b/content/shell/renderer/test_runner/TestPlugin.cpp |
@@ -429,9 +429,10 @@ void TestPlugin::drawSceneSoftware(void* memory, size_t bytes) { |
m_scene.backgroundColor[1], |
m_scene.backgroundColor[2]); |
+ const SkImageInfo info = SkImageInfo::MakeN32Premul(m_rect.width, |
+ m_rect.height); |
SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, m_rect.width, m_rect.height); |
- bitmap.setPixels(memory); |
+ bitmap.installPixels(info, memory, info.minRowBytes()); |
SkCanvas canvas(bitmap); |
canvas.clear(backgroundColor); |