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 #include "GrContext.h" | 9 #include "GrContext.h" |
10 | 10 |
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 } | 1571 } |
1572 } | 1572 } |
1573 | 1573 |
1574 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { | 1574 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
1575 fGpu->removeGpuTraceMarker(marker); | 1575 fGpu->removeGpuTraceMarker(marker); |
1576 if (fDrawBuffer) { | 1576 if (fDrawBuffer) { |
1577 fDrawBuffer->removeGpuTraceMarker(marker); | 1577 fDrawBuffer->removeGpuTraceMarker(marker); |
1578 } | 1578 } |
1579 } | 1579 } |
1580 | 1580 |
1581 /////////////////////////////////////////////////////////////////////////////// | |
1582 #if GR_CACHE_STATS | |
1583 void GrContext::printCacheStats() const { | |
1584 fResourceCache2->printStats(); | |
1585 } | |
1586 #endif | |
1587 | |
1588 #if GR_GPU_STATS | |
1589 const GrContext::GPUStats* GrContext::gpuStats() const { | |
1590 return fGpu->gpuStats(); | |
1591 } | |
1592 #endif | |
1593 | |
OLD | NEW |