OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |