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 2278703002: SkPDF: Glyph validation change (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix comment Created 4 years, 3 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 | « include/core/SkPostConfig.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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, 271 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix,
272 const SkClipStack& clipStack, 272 const SkClipStack& clipStack,
273 const SkRegion& clipRegion, 273 const SkRegion& clipRegion,
274 const SkPaint& paint, 274 const SkPaint& paint,
275 bool hasText, 275 bool hasText,
276 GraphicStateEntry* entry); 276 GraphicStateEntry* entry);
277 int addGraphicStateResource(SkPDFObject* gs); 277 int addGraphicStateResource(SkPDFObject* gs);
278 int addXObjectResource(SkPDFObject* xObject); 278 int addXObjectResource(SkPDFObject* xObject);
279 279
280 // returns false when a valid SkFont can not be produced 280 // returns nullptr when a valid SkFont can not be produced
281 bool updateFont(const SkPaint& paint, uint16_t glyphID, ContentEntry* conten tEntry); 281 SkPDFFont* updateFont(SkTypeface* typeface,
282 SkScalar textSize,
283 uint16_t glyphID,
284 ContentEntry* contentEntry);
282 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); 285 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID);
283 286
284 287
285 void internalDrawText(const SkDraw&, const void*, size_t, const SkScalar pos [], 288 void internalDrawText(const SkDraw&, const void*, size_t, const SkScalar pos [],
286 SkTextBlob::GlyphPositioning, SkPoint, const SkPaint&) ; 289 SkTextBlob::GlyphPositioning, SkPoint, const SkPaint&) ;
287 290
288 291
289 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); 292 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry);
290 293
291 void internalDrawImage(const SkMatrix& origMatrix, 294 void internalDrawImage(const SkMatrix& origMatrix,
(...skipping 10 matching lines...) Expand all
302 305
303 typedef SkBaseDevice INHERITED; 306 typedef SkBaseDevice INHERITED;
304 307
305 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 308 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
306 // an SkPDFDevice 309 // an SkPDFDevice
307 //friend class SkDocument_PDF; 310 //friend class SkDocument_PDF;
308 //friend class SkPDFImageShader; 311 //friend class SkPDFImageShader;
309 }; 312 };
310 313
311 #endif 314 #endif
OLDNEW
« no previous file with comments | « include/core/SkPostConfig.h ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698