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/SkPDFGraphicState.h

Issue 827733004: Change function signature of SkPDFObject::emitObject. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/SkPDFFontImpl.h ('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 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
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 SkPDFGraphicState_DEFINED 10 #ifndef SkPDFGraphicState_DEFINED
(...skipping 23 matching lines...) Expand all
34 kLuminosity_SMaskMode 34 kLuminosity_SMaskMode
35 }; 35 };
36 36
37 virtual ~SkPDFGraphicState(); 37 virtual ~SkPDFGraphicState();
38 38
39 virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, 39 virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects,
40 SkTSet<SkPDFObject*>* newResourceObjects); 40 SkTSet<SkPDFObject*>* newResourceObjects);
41 41
42 // Override emitObject and getOutputSize so that we can populate 42 // Override emitObject and getOutputSize so that we can populate
43 // the dictionary on demand. 43 // the dictionary on demand.
44 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog, 44 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog);
45 bool indirect);
46 virtual size_t getOutputSize(SkPDFCatalog* catalog, bool indirect); 45 virtual size_t getOutputSize(SkPDFCatalog* catalog, bool indirect);
47 46
48 /** Get the graphic state for the passed SkPaint. The reference count of 47 /** Get the graphic state for the passed SkPaint. The reference count of
49 * the object is incremented and it is the caller's responsibility to 48 * the object is incremented and it is the caller's responsibility to
50 * unreference it when done. This is needed to accommodate the weak 49 * unreference it when done. This is needed to accommodate the weak
51 * reference pattern used when the returned object is new and has no 50 * reference pattern used when the returned object is new and has no
52 * other references. 51 * other references.
53 * @param paint The SkPaint to emulate. 52 * @param paint The SkPaint to emulate.
54 */ 53 */
55 static SkPDFGraphicState* GetGraphicStateForPaint(const SkPaint& paint); 54 static SkPDFGraphicState* GetGraphicStateForPaint(const SkPaint& paint);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 101
103 void populateDict(); 102 void populateDict();
104 103
105 static SkPDFObject* GetInvertFunction(); 104 static SkPDFObject* GetInvertFunction();
106 105
107 static int Find(const SkPaint& paint); 106 static int Find(const SkPaint& paint);
108 typedef SkPDFDict INHERITED; 107 typedef SkPDFDict INHERITED;
109 }; 108 };
110 109
111 #endif 110 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFontImpl.h ('k') | src/pdf/SkPDFGraphicState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698