| 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 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 } | 1782 } |
| 1783 } | 1783 } |
| 1784 | 1784 |
| 1785 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { | 1785 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
| 1786 fGpu->removeGpuTraceMarker(marker); | 1786 fGpu->removeGpuTraceMarker(marker); |
| 1787 if (fDrawBuffer) { | 1787 if (fDrawBuffer) { |
| 1788 fDrawBuffer->removeGpuTraceMarker(marker); | 1788 fDrawBuffer->removeGpuTraceMarker(marker); |
| 1789 } | 1789 } |
| 1790 } | 1790 } |
| 1791 | 1791 |
| 1792 /////////////////////////////////////////////////////////////////////////////// | |
| 1793 #if GR_CACHE_STATS | |
| 1794 void GrContext::printCacheStats() const { | |
| 1795 fResourceCache2->printStats(); | |
| 1796 } | |
| 1797 #endif | |
| 1798 | |
| 1799 #if GR_GPU_STATS | |
| 1800 const GrContext::GPUStats* GrContext::gpuStats() const { | |
| 1801 return fGpu->gpuStats(); | |
| 1802 } | |
| 1803 #endif | |
| 1804 | |
| OLD | NEW |