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

Unified Diff: src/pdf/SkPDFImage.h

Issue 22831039: Add unpremultiply support and GM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix 8888 case Created 7 years, 4 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
Index: src/pdf/SkPDFImage.h
diff --git a/src/pdf/SkPDFImage.h b/src/pdf/SkPDFImage.h
index 684487f072ca40370889851626479fbbe07d0a4b..62878274fa17d5437bfc3547dbe02011fee76af1 100644
--- a/src/pdf/SkPDFImage.h
+++ b/src/pdf/SkPDFImage.h
@@ -100,6 +100,12 @@ private:
*/
void initImageParams(bool isAlpha);
+ /** Initialize my bitmap field from a source bitmap. Does a deep copy
+ * if the source is not iummutable - guarantees my copy is consistent
+ * for the duration of its lifetime.
+ */
+ void initBitmap(const SkBitmap& bitmap);
+
// Populate the stream dictionary. This method returns false if
// fSubstitute should be used.
virtual bool populate(SkPDFCatalog* catalog);

Powered by Google App Engine
This is Rietveld 408576698