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

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

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/SkPDFGraphicState.h ('k') | src/pdf/SkPDFPage.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 #include "SkData.h" 8 #include "SkData.h"
9 #include "SkPDFFormXObject.h" 9 #include "SkPDFFormXObject.h"
10 #include "SkPDFGraphicState.h" 10 #include "SkPDFGraphicState.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 fResources.unrefAll(); 63 fResources.unrefAll();
64 } 64 }
65 65
66 void SkPDFGraphicState::getResources( 66 void SkPDFGraphicState::getResources(
67 const SkTSet<SkPDFObject*>& knownResourceObjects, 67 const SkTSet<SkPDFObject*>& knownResourceObjects,
68 SkTSet<SkPDFObject*>* newResourceObjects) { 68 SkTSet<SkPDFObject*>* newResourceObjects) {
69 GetResourcesHelper(&fResources, knownResourceObjects, newResourceObjects); 69 GetResourcesHelper(&fResources, knownResourceObjects, newResourceObjects);
70 } 70 }
71 71
72 void SkPDFGraphicState::emitObject(SkWStream* stream, SkPDFCatalog* catalog, 72 void SkPDFGraphicState::emitObject(SkWStream* stream, SkPDFCatalog* catalog) {
73 bool indirect) {
74 populateDict(); 73 populateDict();
75 SkPDFDict::emitObject(stream, catalog, indirect); 74 SkPDFDict::emitObject(stream, catalog);
76 } 75 }
77 76
78 // static 77 // static
79 size_t SkPDFGraphicState::getOutputSize(SkPDFCatalog* catalog, bool indirect) { 78 size_t SkPDFGraphicState::getOutputSize(SkPDFCatalog* catalog, bool indirect) {
80 populateDict(); 79 populateDict();
81 return SkPDFDict::getOutputSize(catalog, indirect); 80 return SkPDFDict::getOutputSize(catalog, indirect);
82 } 81 }
83 82
84 // static 83 // static
85 SkTDArray<SkPDFGraphicState::GSCanonicalEntry>& SkPDFGraphicState::CanonicalPain ts() { 84 SkTDArray<SkPDFGraphicState::GSCanonicalEntry>& SkPDFGraphicState::CanonicalPain ts() {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 } 277 }
279 if (bXfermodeName < 0 || bXfermodeName > SkXfermode::kLastMode || 278 if (bXfermodeName < 0 || bXfermodeName > SkXfermode::kLastMode ||
280 blend_mode_from_xfermode(bXfermodeName) == NULL) { 279 blend_mode_from_xfermode(bXfermodeName) == NULL) {
281 bXfermodeName = SkXfermode::kSrcOver_Mode; 280 bXfermodeName = SkXfermode::kSrcOver_Mode;
282 } 281 }
283 const char* bXfermodeString = blend_mode_from_xfermode(bXfermodeName); 282 const char* bXfermodeString = blend_mode_from_xfermode(bXfermodeName);
284 SkASSERT(bXfermodeString != NULL); 283 SkASSERT(bXfermodeString != NULL);
285 284
286 return strcmp(aXfermodeString, bXfermodeString) == 0; 285 return strcmp(aXfermodeString, bXfermodeString) == 0;
287 } 286 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFGraphicState.h ('k') | src/pdf/SkPDFPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698