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

Side by Side Diff: src/core/SkPictureFlat.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/SkPicture.cpp ('k') | src/core/SkPictureStateTree.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 #include "SkPictureFlat.h" 8 #include "SkPictureFlat.h"
9 9
10 #include "SkChecksum.h" 10 #include "SkChecksum.h"
11 #include "SkColorFilter.h" 11 #include "SkColorFilter.h"
12 #include "SkDrawLooper.h" 12 #include "SkDrawLooper.h"
13 #include "SkMaskFilter.h" 13 #include "SkMaskFilter.h"
14 #include "SkRasterizer.h" 14 #include "SkRasterizer.h"
15 #include "SkShader.h" 15 #include "SkShader.h"
16 #include "SkTypeface.h" 16 #include "SkTypeface.h"
17 #include "SkXfermode.h" 17 #include "SkXfermode.h"
18 18
19 SK_DEFINE_INST_COUNT(SkFlatController)
20
21 /////////////////////////////////////////////////////////////////////////////// 19 ///////////////////////////////////////////////////////////////////////////////
22 20
23 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(NULL) {} 21 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(NULL) {}
24 22
25 SkTypefacePlayback::~SkTypefacePlayback() { 23 SkTypefacePlayback::~SkTypefacePlayback() {
26 this->reset(NULL); 24 this->reset(NULL);
27 } 25 }
28 26
29 void SkTypefacePlayback::reset(const SkRefCntSet* rec) { 27 void SkTypefacePlayback::reset(const SkRefCntSet* rec) {
30 for (int i = 0; i < fCount; i++) { 28 for (int i = 0; i < fCount; i++) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if (bitmapHeap) { 131 if (bitmapHeap) {
134 buffer.setBitmapStorage(bitmapHeap); 132 buffer.setBitmapStorage(bitmapHeap);
135 } 133 }
136 if (facePlayback) { 134 if (facePlayback) {
137 facePlayback->setupBuffer(buffer); 135 facePlayback->setupBuffer(buffer);
138 } 136 }
139 137
140 unflattenProc(buffer, result); 138 unflattenProc(buffer, result);
141 SkASSERT(fFlatSize == (int32_t)buffer.offset()); 139 SkASSERT(fFlatSize == (int32_t)buffer.offset());
142 } 140 }
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureStateTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698