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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 this is for testing only */ | 342 this is for testing only */ |
343 void setTextBlobCacheLimit_ForTesting(size_t bytes); | 343 void setTextBlobCacheLimit_ForTesting(size_t bytes); |
344 | 344 |
345 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe
r below should be | 345 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe
r below should be |
346 to an array of 3 entries */ | 346 to an array of 3 entries */ |
347 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); | 347 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); |
348 | 348 |
349 /** Enumerates all cached GPU resources and dumps their memory to traceMemor
yDump. */ | 349 /** Enumerates all cached GPU resources and dumps their memory to traceMemor
yDump. */ |
350 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; | 350 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; |
351 | 351 |
| 352 /** Draw font cache texture to render target */ |
| 353 void drawFontCache(const SkRect& rect, GrMaskFormat format, const SkPaint& p
aint, |
| 354 GrRenderTarget* target); |
| 355 |
352 private: | 356 private: |
353 GrGpu* fGpu; | 357 GrGpu* fGpu; |
354 const GrCaps* fCaps; | 358 const GrCaps* fCaps; |
355 GrResourceCache* fResourceCache; | 359 GrResourceCache* fResourceCache; |
356 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider | 360 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider |
357 // is in a private header. | 361 // is in a private header. |
358 union { | 362 union { |
359 GrResourceProvider* fResourceProvider; | 363 GrResourceProvider* fResourceProvider; |
360 GrTextureProvider* fTextureProvider; | 364 GrTextureProvider* fTextureProvider; |
361 }; | 365 }; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 /** | 433 /** |
430 * A callback similar to the above for use by the TextBlobCache | 434 * A callback similar to the above for use by the TextBlobCache |
431 * TODO move textblob draw calls below context so we can use the call above. | 435 * TODO move textblob draw calls below context so we can use the call above. |
432 */ | 436 */ |
433 static void TextBlobCacheOverBudgetCB(void* data); | 437 static void TextBlobCacheOverBudgetCB(void* data); |
434 | 438 |
435 typedef SkRefCnt INHERITED; | 439 typedef SkRefCnt INHERITED; |
436 }; | 440 }; |
437 | 441 |
438 #endif | 442 #endif |
OLD | NEW |