Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: src/gpu/GrContext.cpp

Issue 886233004: Print gpu/cache stats from DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: minor Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698