OLD | NEW |
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 Loading... |
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 |
OLD | NEW |