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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFImage_DEFINED 10 #ifndef SkPDFImage_DEFINED
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 SkPDFImage(SkPDFImage& pdfImage); 93 SkPDFImage(SkPDFImage& pdfImage);
94 94
95 /** Initialize the image XObject parameters based on fBitmap and 95 /** Initialize the image XObject parameters based on fBitmap and
96 * fSrcRect, which MUST have been initialized before calling this. 96 * fSrcRect, which MUST have been initialized before calling this.
97 * Image data is not touched. 97 * Image data is not touched.
98 * @param isAlpha Whether or not this image is the alpha channel 98 * @param isAlpha Whether or not this image is the alpha channel
99 * (SMask) for another image XObject. 99 * (SMask) for another image XObject.
100 */ 100 */
101 void initImageParams(bool isAlpha); 101 void initImageParams(bool isAlpha);
102 102
103 /** Initialize my bitmap field from a source bitmap. Does a deep copy
104 * if the source is not iummutable - guarantees my copy is consistent
105 * for the duration of its lifetime.
106 */
107 void initBitmap(const SkBitmap& bitmap);
108
103 // Populate the stream dictionary. This method returns false if 109 // Populate the stream dictionary. This method returns false if
104 // fSubstitute should be used. 110 // fSubstitute should be used.
105 virtual bool populate(SkPDFCatalog* catalog); 111 virtual bool populate(SkPDFCatalog* catalog);
106 112
107 typedef SkPDFStream INHERITED; 113 typedef SkPDFStream INHERITED;
108 }; 114 };
109 115
110 #endif 116 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698