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

Unified Diff: include/core/SkBitmap.h

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 | « gm/image.cpp ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index eda13b3c52390f11067583decd82d389a709e77a..cf1c4c77f208f718a54dbe1a3c677810a3eb70e2 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -295,6 +295,14 @@ public:
}
/**
+ * Call installPixels with no ReleaseProc specified. This means
+ * that the caller must ensure that the specified pixels and
+ * colortable are valid for the lifetime of the created bitmap
+ * (and its pixelRef).
+ */
+ bool installPixels(const SkPixmap&);
+
+ /**
* Calls installPixels() with the value in the SkMask. The caller must
* ensure that the specified mask pixels are valid for the lifetime
* of the created bitmap (and its pixelRef).
« no previous file with comments | « gm/image.cpp ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698