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

Side by Side Diff: src/core/SkCanvas.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/SkBitmapHeap.cpp ('k') | src/core/SkColorFilter.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 2008 The Android Open Source Project 3 * Copyright 2008 The Android Open Source Project
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 "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 12 matching lines...) Expand all
23 #include "SkSurface_Base.h" 23 #include "SkSurface_Base.h"
24 #include "SkTemplates.h" 24 #include "SkTemplates.h"
25 #include "SkTextFormatParams.h" 25 #include "SkTextFormatParams.h"
26 #include "SkTLazy.h" 26 #include "SkTLazy.h"
27 #include "SkUtils.h" 27 #include "SkUtils.h"
28 28
29 #if SK_SUPPORT_GPU 29 #if SK_SUPPORT_GPU
30 #include "GrRenderTarget.h" 30 #include "GrRenderTarget.h"
31 #endif 31 #endif
32 32
33 SK_DEFINE_INST_COUNT(SkBounder)
34 SK_DEFINE_INST_COUNT(SkCanvas)
35 SK_DEFINE_INST_COUNT(SkDrawFilter)
36
37 // experimental for faster tiled drawing... 33 // experimental for faster tiled drawing...
38 //#define SK_ENABLE_CLIP_QUICKREJECT 34 //#define SK_ENABLE_CLIP_QUICKREJECT
39 35
40 //#define SK_TRACE_SAVERESTORE 36 //#define SK_TRACE_SAVERESTORE
41 37
42 #ifdef SK_TRACE_SAVERESTORE 38 #ifdef SK_TRACE_SAVERESTORE
43 static int gLayerCounter; 39 static int gLayerCounter;
44 static void inc_layer() { ++gLayerCounter; printf("----- inc layer %d\n", gL ayerCounter); } 40 static void inc_layer() { ++gLayerCounter; printf("----- inc layer %d\n", gL ayerCounter); }
45 static void dec_layer() { --gLayerCounter; printf("----- dec layer %d\n", gL ayerCounter); } 41 static void dec_layer() { --gLayerCounter; printf("----- dec layer %d\n", gL ayerCounter); }
46 42
(...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 return *paint; 2220 return *paint;
2225 } 2221 }
2226 2222
2227 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } 2223 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); }
2228 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } 2224 int SkCanvas::LayerIter::x() const { return fImpl->getX(); }
2229 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } 2225 int SkCanvas::LayerIter::y() const { return fImpl->getY(); }
2230 2226
2231 /////////////////////////////////////////////////////////////////////////////// 2227 ///////////////////////////////////////////////////////////////////////////////
2232 2228
2233 SkCanvas::ClipVisitor::~ClipVisitor() { } 2229 SkCanvas::ClipVisitor::~ClipVisitor() { }
OLDNEW
« no previous file with comments | « src/core/SkBitmapHeap.cpp ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698