Index: platform_tools/nacl/src/nacl_debugger.cpp |
diff --git a/platform_tools/nacl/src/nacl_debugger.cpp b/platform_tools/nacl/src/nacl_debugger.cpp |
index 9c6a0f86753f020d4c5150e439d7b75fdd3f64ce..b80dde093845a612b79d9105417bb4ec0635fd80 100644 |
--- a/platform_tools/nacl/src/nacl_debugger.cpp |
+++ b/platform_tools/nacl/src/nacl_debugger.cpp |
@@ -167,8 +167,8 @@ public: |
fImage = pp::ImageData(this, |
PP_IMAGEDATAFORMAT_BGRA_PREMUL, |
pp::Size(fWidth, fHeight), false); |
- fBitmap.setConfig(SkBitmap::kARGB_8888_Config, fWidth, fHeight); |
- fBitmap.setPixels(fImage.data()); |
+ const SkImageInfo info = SkImageInfo::MakeN32Premul(fWidth, fHeight); |
+ fBitmap.installPixels(info, fImage.data(), info.minRowBytes()); |
if (fCanvas) { |
delete fCanvas; |
} |