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

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

Issue 685883003: Clip in grdrawtarget (Closed) Base URL: https://skia.googlesource.com/skia.git@drawtarget_on_clip_manager
Patch Set: dm cleaned up Created 6 years, 1 month 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 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698