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

Unified Diff: platform_tools/nacl/src/nacl_debugger.cpp

Issue 327643003: teach Nacl to not call setConfig (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698