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

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

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « src/pdf/SkPDFStream.h ('k') | src/text/SkTextLayout.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 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 #include "SkPDFCatalog.h" 10 #include "SkPDFCatalog.h"
11 #include "SkPDFTypes.h" 11 #include "SkPDFTypes.h"
12 #include "SkStream.h" 12 #include "SkStream.h"
13 13
14 #ifdef SK_BUILD_FOR_WIN 14 #ifdef SK_BUILD_FOR_WIN
15 #define SNPRINTF _snprintf 15 #define SNPRINTF _snprintf
16 #else 16 #else
17 #define SNPRINTF snprintf 17 #define SNPRINTF snprintf
18 #endif 18 #endif
19 19
20 SK_DEFINE_INST_COUNT(SkPDFArray)
21 SK_DEFINE_INST_COUNT(SkPDFBool)
22 SK_DEFINE_INST_COUNT(SkPDFDict)
23 SK_DEFINE_INST_COUNT(SkPDFInt)
24 SK_DEFINE_INST_COUNT(SkPDFName)
25 SK_DEFINE_INST_COUNT(SkPDFObject)
26 SK_DEFINE_INST_COUNT(SkPDFObjRef)
27 SK_DEFINE_INST_COUNT(SkPDFScalar)
28 SK_DEFINE_INST_COUNT(SkPDFString)
29
30 /////////////////////////////////////////////////////////////////////////////// 20 ///////////////////////////////////////////////////////////////////////////////
31 21
32 void SkPDFObject::emit(SkWStream* stream, SkPDFCatalog* catalog, 22 void SkPDFObject::emit(SkWStream* stream, SkPDFCatalog* catalog,
33 bool indirect) { 23 bool indirect) {
34 SkPDFObject* realObject = catalog->getSubstituteObject(this); 24 SkPDFObject* realObject = catalog->getSubstituteObject(this);
35 return realObject->emitObject(stream, catalog, indirect); 25 return realObject->emitObject(stream, catalog, indirect);
36 } 26 }
37 27
38 size_t SkPDFObject::getOutputSize(SkPDFCatalog* catalog, bool indirect) { 28 size_t SkPDFObject::getOutputSize(SkPDFCatalog* catalog, bool indirect) {
39 SkDynamicMemoryWStream buffer; 29 SkDynamicMemoryWStream buffer;
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 SkPDFName* SkPDFDict::Iter::next(SkPDFObject** value) { 482 SkPDFName* SkPDFDict::Iter::next(SkPDFObject** value) {
493 if (fIter != fStop) { 483 if (fIter != fStop) {
494 const Rec* cur = fIter; 484 const Rec* cur = fIter;
495 fIter++; 485 fIter++;
496 *value = cur->value; 486 *value = cur->value;
497 return cur->key; 487 return cur->key;
498 } 488 }
499 *value = NULL; 489 *value = NULL;
500 return NULL; 490 return NULL;
501 } 491 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFStream.h ('k') | src/text/SkTextLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698