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

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

Issue 2253283004: SkPDF: in-place font subsetting (Closed) Base URL: https://skia.googlesource.com/skia.git@SkPdfCacheMetrics
Patch Set: 2016-08-18 (Thursday) 16:02:16 EDT Created 4 years, 4 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/SkPDFFont.cpp ('k') | src/pdf/SkPDFGraphicState.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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 8
9 #ifndef SkPDFGraphicState_DEFINED 9 #ifndef SkPDFGraphicState_DEFINED
10 #define SkPDFGraphicState_DEFINED 10 #define SkPDFGraphicState_DEFINED
(...skipping 13 matching lines...) Expand all
24 24
25 public: 25 public:
26 enum SkPDFSMaskMode { 26 enum SkPDFSMaskMode {
27 kAlpha_SMaskMode, 27 kAlpha_SMaskMode,
28 kLuminosity_SMaskMode 28 kLuminosity_SMaskMode
29 }; 29 };
30 30
31 // Override emitObject so that we can populate the dictionary on 31 // Override emitObject so that we can populate the dictionary on
32 // demand. 32 // demand.
33 void emitObject(SkWStream* stream, 33 void emitObject(SkWStream* stream,
34 const SkPDFObjNumMap& objNumMap, 34 const SkPDFObjNumMap& objNumMap) const override;
35 const SkPDFSubstituteMap& substitutes) const override;
36 35
37 /** Get the graphic state for the passed SkPaint. The reference count of 36 /** Get the graphic state for the passed SkPaint. The reference count of
38 * the object is incremented and it is the caller's responsibility to 37 * the object is incremented and it is the caller's responsibility to
39 * unreference it when done. This is needed to accommodate the weak 38 * unreference it when done. This is needed to accommodate the weak
40 * reference pattern used when the returned object is new and has no 39 * reference pattern used when the returned object is new and has no
41 * other references. 40 * other references.
42 * @param paint The SkPaint to emulate. 41 * @param paint The SkPaint to emulate.
43 */ 42 */
44 static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon, 43 static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon,
45 const SkPaint& paint); 44 const SkPaint& paint);
(...skipping 26 matching lines...) Expand all
72 const uint8_t fStrokeCap; // SkPaint::Cap 71 const uint8_t fStrokeCap; // SkPaint::Cap
73 const uint8_t fStrokeJoin; // SkPaint::Join 72 const uint8_t fStrokeJoin; // SkPaint::Join
74 const uint8_t fMode; // SkXfermode::Mode 73 const uint8_t fMode; // SkXfermode::Mode
75 74
76 SkPDFGraphicState(const SkPaint&); 75 SkPDFGraphicState(const SkPaint&);
77 76
78 typedef SkPDFDict INHERITED; 77 typedef SkPDFDict INHERITED;
79 }; 78 };
80 79
81 #endif 80 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFont.cpp ('k') | src/pdf/SkPDFGraphicState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698