| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 346 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
| 347 | 347 |
| 348 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ | 348 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ |
| 349 void dumpCacheStats(SkString*) const; | 349 void dumpCacheStats(SkString*) const; |
| 350 void printCacheStats() const; | 350 void printCacheStats() const; |
| 351 | 351 |
| 352 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ | 352 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ |
| 353 void dumpGpuStats(SkString*) const; | 353 void dumpGpuStats(SkString*) const; |
| 354 void printGpuStats() const; | 354 void printGpuStats() const; |
| 355 | 355 |
| 356 /** Specify the TextBlob cache limit. If the current cache exceeds this limi
t it will purge. |
| 357 this is for testing only */ |
| 358 void setTextBlobCacheLimit_ForTesting(size_t bytes); |
| 359 |
| 356 private: | 360 private: |
| 357 GrGpu* fGpu; | 361 GrGpu* fGpu; |
| 358 const GrCaps* fCaps; | 362 const GrCaps* fCaps; |
| 359 GrResourceCache* fResourceCache; | 363 GrResourceCache* fResourceCache; |
| 360 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider | 364 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider |
| 361 // is in a private header. | 365 // is in a private header. |
| 362 union { | 366 union { |
| 363 GrResourceProvider* fResourceProvider; | 367 GrResourceProvider* fResourceProvider; |
| 364 GrTextureProvider* fTextureProvider; | 368 GrTextureProvider* fTextureProvider; |
| 365 }; | 369 }; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 /** | 462 /** |
| 459 * A callback similar to the above for use by the TextBlobCache | 463 * A callback similar to the above for use by the TextBlobCache |
| 460 * TODO move textblob draw calls below context so we can use the call above. | 464 * TODO move textblob draw calls below context so we can use the call above. |
| 461 */ | 465 */ |
| 462 static void TextBlobCacheOverBudgetCB(void* data); | 466 static void TextBlobCacheOverBudgetCB(void* data); |
| 463 | 467 |
| 464 typedef SkRefCnt INHERITED; | 468 typedef SkRefCnt INHERITED; |
| 465 }; | 469 }; |
| 466 | 470 |
| 467 #endif | 471 #endif |
| OLD | NEW |