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 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 fDrawBuffer->removeGpuTraceMarker(marker); | 1934 fDrawBuffer->removeGpuTraceMarker(marker); |
1935 } | 1935 } |
1936 } | 1936 } |
1937 | 1937 |
1938 /////////////////////////////////////////////////////////////////////////////// | 1938 /////////////////////////////////////////////////////////////////////////////// |
1939 #if GR_CACHE_STATS | 1939 #if GR_CACHE_STATS |
1940 void GrContext::printCacheStats() const { | 1940 void GrContext::printCacheStats() const { |
1941 fResourceCache->printStats(); | 1941 fResourceCache->printStats(); |
1942 } | 1942 } |
1943 #endif | 1943 #endif |
| 1944 |
| 1945 #if GR_GPU_STATS |
| 1946 const GrContext::GPUStats* GrContext::gpuStats() const { |
| 1947 return fGpu->gpuStats(); |
| 1948 } |
| 1949 #endif |
| 1950 |
OLD | NEW |