| 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 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 } | 1769 } |
| 1770 } | 1770 } |
| 1771 | 1771 |
| 1772 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { | 1772 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
| 1773 fGpu->removeGpuTraceMarker(marker); | 1773 fGpu->removeGpuTraceMarker(marker); |
| 1774 if (fDrawBuffer) { | 1774 if (fDrawBuffer) { |
| 1775 fDrawBuffer->removeGpuTraceMarker(marker); | 1775 fDrawBuffer->removeGpuTraceMarker(marker); |
| 1776 } | 1776 } |
| 1777 } | 1777 } |
| 1778 | 1778 |
| 1779 GrDrawTarget* GrContext::getDrawTarget() { |
| 1780 return fDrawBuffer; |
| 1781 } |
| 1782 |
| 1779 /////////////////////////////////////////////////////////////////////////////// | 1783 /////////////////////////////////////////////////////////////////////////////// |
| 1780 #if GR_CACHE_STATS | 1784 #if GR_CACHE_STATS |
| 1781 void GrContext::printCacheStats() const { | 1785 void GrContext::printCacheStats() const { |
| 1782 fResourceCache->printStats(); | 1786 fResourceCache->printStats(); |
| 1783 } | 1787 } |
| 1784 #endif | 1788 #endif |
| 1785 | 1789 |
| 1786 #if GR_GPU_STATS | 1790 #if GR_GPU_STATS |
| 1787 const GrContext::GPUStats* GrContext::gpuStats() const { | 1791 const GrContext::GPUStats* GrContext::gpuStats() const { |
| 1788 return fGpu->gpuStats(); | 1792 return fGpu->gpuStats(); |
| 1789 } | 1793 } |
| 1790 #endif | 1794 #endif |
| 1791 | 1795 |
| OLD | NEW |