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

Side by Side Diff: src/pdf/SkPDFDevice.h

Issue 1037573005: SkPDF: add canon assert before adding code that might break it (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove TODO message Created 5 years, 9 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
« no previous file with comments | « no previous file | src/pdf/SkPDFDocument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/pdf/SkPDFDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698