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

Side by Side Diff: src/gpu/GrContext.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/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrDrawTarget.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 "GrContext.h" 10 #include "GrContext.h"
(...skipping 14 matching lines...) Expand all
25 #include "GrSoftwarePathRenderer.h" 25 #include "GrSoftwarePathRenderer.h"
26 #include "GrStencilBuffer.h" 26 #include "GrStencilBuffer.h"
27 #include "GrTextStrike.h" 27 #include "GrTextStrike.h"
28 #include "SkRTConf.h" 28 #include "SkRTConf.h"
29 #include "SkRRect.h" 29 #include "SkRRect.h"
30 #include "SkStrokeRec.h" 30 #include "SkStrokeRec.h"
31 #include "SkTLazy.h" 31 #include "SkTLazy.h"
32 #include "SkTLS.h" 32 #include "SkTLS.h"
33 #include "SkTrace.h" 33 #include "SkTrace.h"
34 34
35 SK_DEFINE_INST_COUNT(GrContext)
36 SK_DEFINE_INST_COUNT(GrDrawState)
37
38 // It can be useful to set this to false to test whether a bug is caused by usin g the 35 // It can be useful to set this to false to test whether a bug is caused by usin g the
39 // InOrderDrawBuffer, to compare performance of using/not using InOrderDrawBuffe r, or to make 36 // InOrderDrawBuffer, to compare performance of using/not using InOrderDrawBuffe r, or to make
40 // debugging simpler. 37 // debugging simpler.
41 SK_CONF_DECLARE(bool, c_Defer, "gpu.deferContext", true, 38 SK_CONF_DECLARE(bool, c_Defer, "gpu.deferContext", true,
42 "Defers rendering in GrContext via GrInOrderDrawBuffer."); 39 "Defers rendering in GrContext via GrInOrderDrawBuffer.");
43 40
44 #define BUFFERED_DRAW (c_Defer ? kYes_BufferedDraw : kNo_BufferedDraw) 41 #define BUFFERED_DRAW (c_Defer ? kYes_BufferedDraw : kNo_BufferedDraw)
45 42
46 #ifdef SK_DEBUG 43 #ifdef SK_DEBUG
47 // change this to a 1 to see notifications when partial coverage fails 44 // change this to a 1 to see notifications when partial coverage fails
(...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 } 1807 }
1811 return path; 1808 return path;
1812 } 1809 }
1813 1810
1814 /////////////////////////////////////////////////////////////////////////////// 1811 ///////////////////////////////////////////////////////////////////////////////
1815 #if GR_CACHE_STATS 1812 #if GR_CACHE_STATS
1816 void GrContext::printCacheStats() const { 1813 void GrContext::printCacheStats() const {
1817 fTextureCache->printStats(); 1814 fTextureCache->printStats();
1818 } 1815 }
1819 #endif 1816 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698