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

Unified Diff: gm/image.cpp

Issue 1505333002: SkBitmap::installPixels(const SkPixmap&); (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-12-09 (Wednesday) 13:58:05 EST Created 5 years 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 | « bench/ImageBench.cpp ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/image.cpp
diff --git a/gm/image.cpp b/gm/image.cpp
index ac72f63b36f96dc2ab271778578d9e31a588b35e..60c1f1141862c36db176df9bba313b911012986b 100644
--- a/gm/image.cpp
+++ b/gm/image.cpp
@@ -199,7 +199,7 @@ DEF_GM( return new ImageGM; )
static void draw_pixmap(SkCanvas* canvas, const SkPixmap& pmap) {
SkBitmap bitmap;
- bitmap.installPixels(pmap.info(), (void*)pmap.addr(), pmap.rowBytes());
+ bitmap.installPixels(pmap);
canvas->drawBitmap(bitmap, 0, 0, nullptr);
}
« no previous file with comments | « bench/ImageBench.cpp ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698