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 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1950 fDrawBuffer->removeGpuTraceMarker(marker); | 1950 fDrawBuffer->removeGpuTraceMarker(marker); |
1951 } | 1951 } |
1952 } | 1952 } |
1953 | 1953 |
1954 /////////////////////////////////////////////////////////////////////////////// | 1954 /////////////////////////////////////////////////////////////////////////////// |
1955 #if GR_CACHE_STATS | 1955 #if GR_CACHE_STATS |
1956 void GrContext::printCacheStats() const { | 1956 void GrContext::printCacheStats() const { |
1957 fResourceCache->printStats(); | 1957 fResourceCache->printStats(); |
1958 } | 1958 } |
1959 #endif | 1959 #endif |
| 1960 |
| 1961 #if GR_GPU_STATS |
| 1962 const GrContext::GPUStats& GrContext::gpuStats() const { |
| 1963 return fGpu->gpuStats(); |
| 1964 } |
| 1965 #endif |
| 1966 |
OLD | NEW |