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

Side by Side Diff: src/doc/SkDocument.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/core/SkXfermode.cpp ('k') | src/effects/SkBitmapAlphaThresholdShader.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 2013 Google Inc. 2 * Copyright 2013 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 "SkDocument.h" 8 #include "SkDocument.h"
9 #include "SkStream.h" 9 #include "SkStream.h"
10 10
11 SK_DEFINE_INST_COUNT(SkDocument)
12
13 SkDocument::SkDocument(SkWStream* stream, void (*doneProc)(SkWStream*, bool)) { 11 SkDocument::SkDocument(SkWStream* stream, void (*doneProc)(SkWStream*, bool)) {
14 fStream = stream; // we do not own this object. 12 fStream = stream; // we do not own this object.
15 fDoneProc = doneProc; 13 fDoneProc = doneProc;
16 fState = kBetweenPages_State; 14 fState = kBetweenPages_State;
17 } 15 }
18 16
19 SkDocument::~SkDocument() { 17 SkDocument::~SkDocument() {
20 this->close(); 18 this->close();
21 } 19 }
22 20
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 this->onAbort(); 86 this->onAbort();
89 87
90 fState = kClosed_State; 88 fState = kClosed_State;
91 if (fDoneProc) { 89 if (fDoneProc) {
92 fDoneProc(fStream, true); 90 fDoneProc(fStream, true);
93 } 91 }
94 // we don't own the stream, but we mark it NULL since we can 92 // we don't own the stream, but we mark it NULL since we can
95 // no longer write to it. 93 // no longer write to it.
96 fStream = NULL; 94 fStream = NULL;
97 } 95 }
OLDNEW
« no previous file with comments | « src/core/SkXfermode.cpp ('k') | src/effects/SkBitmapAlphaThresholdShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698