| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright 2010 Google Inc. |    2  * Copyright 2010 Google Inc. | 
|    3  * |    3  * | 
|    4  * Use of this source code is governed by a BSD-style license that can be |    4  * Use of this source code is governed by a BSD-style license that can be | 
|    5  * found in the LICENSE file. |    5  * found in the LICENSE file. | 
|    6  */ |    6  */ | 
|    7  |    7  | 
|    8 #ifndef GrContext_DEFINED |    8 #ifndef GrContext_DEFINED | 
|    9 #define GrContext_DEFINED |    9 #define GrContext_DEFINED | 
|   10  |   10  | 
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  323     GrLayerCache* getLayerCache() { return fLayerCache.get(); } |  323     GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 
|  324     GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } |  324     GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } | 
|  325     bool abandoned() const; |  325     bool abandoned() const; | 
|  326     GrResourceProvider* resourceProvider() { return fResourceProvider; } |  326     GrResourceProvider* resourceProvider() { return fResourceProvider; } | 
|  327     const GrResourceProvider* resourceProvider() const { return fResourceProvide
     r; } |  327     const GrResourceProvider* resourceProvider() const { return fResourceProvide
     r; } | 
|  328     GrResourceCache* getResourceCache() { return fResourceCache; } |  328     GrResourceCache* getResourceCache() { return fResourceCache; } | 
|  329  |  329  | 
|  330     // Called by tests that draw directly to the context via GrDrawTarget |  330     // Called by tests that draw directly to the context via GrDrawTarget | 
|  331     void getTestTarget(GrTestTarget*, GrRenderTarget* rt); |  331     void getTestTarget(GrTestTarget*, GrRenderTarget* rt); | 
|  332  |  332  | 
 |  333     /** Reset GPU stats */ | 
 |  334     void resetGpuStats() const ; | 
 |  335  | 
|  333     /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ |  336     /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ | 
|  334     void dumpCacheStats(SkString*) const; |  337     void dumpCacheStats(SkString*) const; | 
|  335     void printCacheStats() const; |  338     void printCacheStats() const; | 
|  336  |  339  | 
|  337     /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ |  340     /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ | 
|  338     void dumpGpuStats(SkString*) const; |  341     void dumpGpuStats(SkString*) const; | 
 |  342     void dumpGpuStatsKeyValuePairs(SkTArray<SkString>* names, SkTArray<double>* 
     values) const; | 
|  339     void printGpuStats() const; |  343     void printGpuStats() const; | 
|  340  |  344  | 
|  341     /** Specify the TextBlob cache limit. If the current cache exceeds this limi
     t it will purge. |  345     /** Specify the TextBlob cache limit. If the current cache exceeds this limi
     t it will purge. | 
|  342         this is for testing only */ |  346         this is for testing only */ | 
|  343     void setTextBlobCacheLimit_ForTesting(size_t bytes); |  347     void setTextBlobCacheLimit_ForTesting(size_t bytes); | 
|  344  |  348  | 
|  345     /** Specify the sizes of the GrAtlasTextContext atlases.  The configs pointe
     r below should be |  349     /** Specify the sizes of the GrAtlasTextContext atlases.  The configs pointe
     r below should be | 
|  346         to an array of 3 entries */ |  350         to an array of 3 entries */ | 
|  347     void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); |  351     void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); | 
|  348  |  352  | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  434     /** |  438     /** | 
|  435      * A callback similar to the above for use by the TextBlobCache |  439      * A callback similar to the above for use by the TextBlobCache | 
|  436      * TODO move textblob draw calls below context so we can use the call above. |  440      * TODO move textblob draw calls below context so we can use the call above. | 
|  437      */ |  441      */ | 
|  438     static void TextBlobCacheOverBudgetCB(void* data); |  442     static void TextBlobCacheOverBudgetCB(void* data); | 
|  439  |  443  | 
|  440     typedef SkRefCnt INHERITED; |  444     typedef SkRefCnt INHERITED; | 
|  441 }; |  445 }; | 
|  442  |  446  | 
|  443 #endif |  447 #endif | 
| OLD | NEW |