From 876633087ee3aa591e3d4c7039dfeb3e76bb6cb7 Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 9 Jun 2014 20:40:05 -0700 Subject: [PATCH] teach Nacl to not call setConfig TBR= NOTRY=True Author: reed@chromium.org Review URL: https://codereview.chromium.org/327643003 --- platform_tools/nacl/src/nacl_debugger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform_tools/nacl/src/nacl_debugger.cpp b/platform_tools/nacl/src/nacl_debugger.cpp index 9c6a0f8675..b80dde0938 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; } -- 2.34.1