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

Unified Diff: gm/peekpixels.cpp

Issue 300263005: Revert "Revert of add colortable support to imagegenerator (https://codereview.chromium.org/3044430… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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 | gyp/images.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/peekpixels.cpp
diff --git a/gm/peekpixels.cpp b/gm/peekpixels.cpp
index 484e4e03b408c1e158cdf8d3d63814356d1bc744..01a60c124ff70581bea3c0d0789e36043e9c21fa 100644
--- a/gm/peekpixels.cpp
+++ b/gm/peekpixels.cpp
@@ -46,8 +46,7 @@ protected:
SkImageInfo info;
size_t rowBytes;
const void* addr = surfCanvas->peekPixels(&info, &rowBytes);
- if (addr && bitmap.installPixels(info, const_cast<void*>(addr),
- rowBytes, NULL, NULL)) {
+ if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) {
canvas->drawBitmap(bitmap, 0, 0, NULL);
}
}
« no previous file with comments | « no previous file | gyp/images.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698