Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Commit

Permalink
teach Nacl to not call setConfig
Browse files Browse the repository at this point in the history
TBR=
NOTRY=True

Author: reed@chromium.org

Review URL: https://codereview.chromium.org/327643003
  • Loading branch information
reed authored and Commit bot committed Jun 10, 2014
1 parent 6c22573 commit 8766330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform_tools/nacl/src/nacl_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ class SkiaInstance : public pp::Instance {
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;
}
Expand Down

0 comments on commit 8766330

Please sign in to comment.