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

Side by Side Diff: src/utils/SkLayer.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/utils/SkDumpCanvas.cpp ('k') | src/utils/SkUnitMappers.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 "SkLayer.h" 8 #include "SkLayer.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 10
11 //#define DEBUG_DRAW_LAYER_BOUNDS 11 //#define DEBUG_DRAW_LAYER_BOUNDS
12 //#define DEBUG_TRACK_NEW_DELETE 12 //#define DEBUG_TRACK_NEW_DELETE
13 13
14 #ifdef DEBUG_TRACK_NEW_DELETE 14 #ifdef DEBUG_TRACK_NEW_DELETE
15 static int gLayerAllocCount; 15 static int gLayerAllocCount;
16 #endif 16 #endif
17 17
18 SK_DEFINE_INST_COUNT(SkLayer)
19
20 /////////////////////////////////////////////////////////////////////////////// 18 ///////////////////////////////////////////////////////////////////////////////
21 19
22 SkLayer::SkLayer() { 20 SkLayer::SkLayer() {
23 fParent = NULL; 21 fParent = NULL;
24 m_opacity = SK_Scalar1; 22 m_opacity = SK_Scalar1;
25 m_size.set(0, 0); 23 m_size.set(0, 0);
26 m_position.set(0, 0); 24 m_position.set(0, 0);
27 m_anchorPoint.set(SK_ScalarHalf, SK_ScalarHalf); 25 m_anchorPoint.set(SK_ScalarHalf, SK_ScalarHalf);
28 26
29 fMatrix.reset(); 27 fMatrix.reset();
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #endif 221 #endif
224 222
225 int count = this->countChildren(); 223 int count = this->countChildren();
226 if (count > 0) { 224 if (count > 0) {
227 canvas->concat(this->getChildrenMatrix()); 225 canvas->concat(this->getChildrenMatrix());
228 for (int i = 0; i < count; i++) { 226 for (int i = 0; i < count; i++) {
229 this->getChild(i)->draw(canvas, opacity); 227 this->getChild(i)->draw(canvas, opacity);
230 } 228 }
231 } 229 }
232 } 230 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/SkUnitMappers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698