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

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

Issue 1401763002: SkPDF: fall back on paths for unembeddable fonts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-10-12 (Monday) 15:54:45 EDT Created 5 years, 2 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 | « src/pdf/SkPDFCanon.h ('k') | src/pdf/SkPDFDevice.cpp » ('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 * 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
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
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
OLDNEW
« no previous file with comments | « src/pdf/SkPDFCanon.h ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698