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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 const GrGpu* getGpu() const { return fGpu; } | 321 const GrGpu* getGpu() const { return fGpu; } |
322 GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; } | 322 GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; } |
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*); | 331 void getTestTarget(GrTestTarget*, GrRenderTarget* rt); |
332 | 332 |
333 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ | 333 /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ |
334 void dumpCacheStats(SkString*) const; | 334 void dumpCacheStats(SkString*) const; |
335 void printCacheStats() const; | 335 void printCacheStats() const; |
336 | 336 |
337 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ | 337 /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ |
338 void dumpGpuStats(SkString*) const; | 338 void dumpGpuStats(SkString*) const; |
339 void printGpuStats() const; | 339 void printGpuStats() const; |
340 | 340 |
341 /** Specify the TextBlob cache limit. If the current cache exceeds this limi
t it will purge. | 341 /** Specify the TextBlob cache limit. If the current cache exceeds this limi
t it will purge. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 /** | 434 /** |
435 * A callback similar to the above for use by the TextBlobCache | 435 * 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. | 436 * TODO move textblob draw calls below context so we can use the call above. |
437 */ | 437 */ |
438 static void TextBlobCacheOverBudgetCB(void* data); | 438 static void TextBlobCacheOverBudgetCB(void* data); |
439 | 439 |
440 typedef SkRefCnt INHERITED; | 440 typedef SkRefCnt INHERITED; |
441 }; | 441 }; |
442 | 442 |
443 #endif | 443 #endif |
OLD | NEW |