OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 SkPDFDevice_DEFINED | 10 #ifndef SkPDFDevice_DEFINED |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 return fInitialTransform; | 173 return fInitialTransform; |
174 } | 174 } |
175 | 175 |
176 /** Returns a SkPDFGlyphSetMap which represents glyph usage of every font | 176 /** Returns a SkPDFGlyphSetMap which represents glyph usage of every font |
177 * that shows on this device. | 177 * that shows on this device. |
178 */ | 178 */ |
179 const SkPDFGlyphSetMap& getFontGlyphUsage() const { | 179 const SkPDFGlyphSetMap& getFontGlyphUsage() const { |
180 return *(fFontGlyphUsage.get()); | 180 return *(fFontGlyphUsage.get()); |
181 } | 181 } |
182 | 182 |
| 183 #ifdef SK_DEBUG |
| 184 SkPDFCanon* getCanon() const { return fCanon; } |
| 185 #endif // SK_DEBUG |
| 186 |
183 protected: | 187 protected: |
184 const SkBitmap& onAccessBitmap() SK_OVERRIDE { | 188 const SkBitmap& onAccessBitmap() SK_OVERRIDE { |
185 return fLegacyBitmap; | 189 return fLegacyBitmap; |
186 } | 190 } |
187 | 191 |
188 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; | 192 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; |
189 | 193 |
190 private: | 194 private: |
191 // TODO(vandebo): push most of SkPDFDevice's state into a core object in | 195 // TODO(vandebo): push most of SkPDFDevice's state into a core object in |
192 // order to get the right access levels without using friend. | 196 // order to get the right access levels without using friend. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 312 |
309 typedef SkBaseDevice INHERITED; | 313 typedef SkBaseDevice INHERITED; |
310 | 314 |
311 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 315 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
312 // an SkPDFDevice | 316 // an SkPDFDevice |
313 //friend class SkDocument_PDF; | 317 //friend class SkDocument_PDF; |
314 //friend class SkPDFImageShader; | 318 //friend class SkPDFImageShader; |
315 }; | 319 }; |
316 | 320 |
317 #endif | 321 #endif |
OLD | NEW |