OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPDFDevice_DEFINED | 8 #ifndef SkPDFDevice_DEFINED |
9 #define SkPDFDevice_DEFINED | 9 #define SkPDFDevice_DEFINED |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 return fInitialTransform; | 182 return fInitialTransform; |
183 } | 183 } |
184 | 184 |
185 /** Returns a SkPDFGlyphSetMap which represents glyph usage of every font | 185 /** Returns a SkPDFGlyphSetMap which represents glyph usage of every font |
186 * that shows on this device. | 186 * that shows on this device. |
187 */ | 187 */ |
188 const SkPDFGlyphSetMap& getFontGlyphUsage() const { | 188 const SkPDFGlyphSetMap& getFontGlyphUsage() const { |
189 return *(fFontGlyphUsage.get()); | 189 return *(fFontGlyphUsage.get()); |
190 } | 190 } |
191 | 191 |
192 #ifdef SK_DEBUG | |
193 SkPDFCanon* getCanon() const { return fCanon; } | 192 SkPDFCanon* getCanon() const { return fCanon; } |
194 #endif // SK_DEBUG | |
195 | 193 |
196 protected: | 194 protected: |
197 const SkBitmap& onAccessBitmap() override { | 195 const SkBitmap& onAccessBitmap() override { |
198 return fLegacyBitmap; | 196 return fLegacyBitmap; |
199 } | 197 } |
200 | 198 |
201 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override; | 199 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override; |
202 | 200 |
203 private: | 201 private: |
204 // TODO(vandebo): push most of SkPDFDevice's state into a core object in | 202 // TODO(vandebo): push most of SkPDFDevice's state into a core object in |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 310 |
313 typedef SkBaseDevice INHERITED; | 311 typedef SkBaseDevice INHERITED; |
314 | 312 |
315 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
316 // an SkPDFDevice | 314 // an SkPDFDevice |
317 //friend class SkDocument_PDF; | 315 //friend class SkDocument_PDF; |
318 //friend class SkPDFImageShader; | 316 //friend class SkPDFImageShader; |
319 }; | 317 }; |
320 | 318 |
321 #endif | 319 #endif |
OLD | NEW |