| 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 15 matching lines...) Expand all  Loading... | 
| 26 #include "GrPathRenderer.h" | 26 #include "GrPathRenderer.h" | 
| 27 #include "GrPathUtils.h" | 27 #include "GrPathUtils.h" | 
| 28 #include "GrRenderTargetPriv.h" | 28 #include "GrRenderTargetPriv.h" | 
| 29 #include "GrResourceCache.h" | 29 #include "GrResourceCache.h" | 
| 30 #include "GrResourceProvider.h" | 30 #include "GrResourceProvider.h" | 
| 31 #include "GrSoftwarePathRenderer.h" | 31 #include "GrSoftwarePathRenderer.h" | 
| 32 #include "GrStrokeInfo.h" | 32 #include "GrStrokeInfo.h" | 
| 33 #include "GrSurfacePriv.h" | 33 #include "GrSurfacePriv.h" | 
| 34 #include "GrTextBlobCache.h" | 34 #include "GrTextBlobCache.h" | 
| 35 #include "GrTexturePriv.h" | 35 #include "GrTexturePriv.h" | 
| 36 #include "GrTraceMarker.h" |  | 
| 37 #include "GrTracing.h" | 36 #include "GrTracing.h" | 
| 38 #include "GrVertices.h" | 37 #include "GrVertices.h" | 
| 39 #include "SkDashPathPriv.h" | 38 #include "SkDashPathPriv.h" | 
| 40 #include "SkConfig8888.h" | 39 #include "SkConfig8888.h" | 
| 41 #include "SkGr.h" | 40 #include "SkGr.h" | 
| 42 #include "SkRRect.h" | 41 #include "SkRRect.h" | 
| 43 #include "SkStrokeRec.h" | 42 #include "SkStrokeRec.h" | 
| 44 #include "SkSurfacePriv.h" | 43 #include "SkSurfacePriv.h" | 
| 45 #include "SkTLazy.h" | 44 #include "SkTLazy.h" | 
| 46 #include "SkTLS.h" | 45 #include "SkTLS.h" | 
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 744     } | 743     } | 
| 745     if (maxTextureBytes) { | 744     if (maxTextureBytes) { | 
| 746         *maxTextureBytes = fResourceCache->getMaxResourceBytes(); | 745         *maxTextureBytes = fResourceCache->getMaxResourceBytes(); | 
| 747     } | 746     } | 
| 748 } | 747 } | 
| 749 | 748 | 
| 750 void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes) 
     { | 749 void GrContext::setResourceCacheLimits(int maxTextures, size_t maxTextureBytes) 
     { | 
| 751     fResourceCache->setLimits(maxTextures, maxTextureBytes); | 750     fResourceCache->setLimits(maxTextures, maxTextureBytes); | 
| 752 } | 751 } | 
| 753 | 752 | 
| 754 ////////////////////////////////////////////////////////////////////////////// |  | 
| 755 |  | 
| 756 void GrContext::addGpuTraceMarker(const GrGpuTraceMarker* marker) { |  | 
| 757     fGpu->addGpuTraceMarker(marker); |  | 
| 758 } |  | 
| 759 |  | 
| 760 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |  | 
| 761     fGpu->removeGpuTraceMarker(marker); |  | 
| 762 } |  | 
| 763 |  | 
| OLD | NEW | 
|---|