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 | |
356 private: | 352 private: |
357 GrGpu* fGpu; | 353 GrGpu* fGpu; |
358 const GrCaps* fCaps; | 354 const GrCaps* fCaps; |
359 GrResourceCache* fResourceCache; | 355 GrResourceCache* fResourceCache; |
360 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider | 356 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider |
361 // is in a private header. | 357 // is in a private header. |
362 union { | 358 union { |
363 GrResourceProvider* fResourceProvider; | 359 GrResourceProvider* fResourceProvider; |
364 GrTextureProvider* fTextureProvider; | 360 GrTextureProvider* fTextureProvider; |
365 }; | 361 }; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 /** | 429 /** |
434 * A callback similar to the above for use by the TextBlobCache | 430 * A callback similar to the above for use by the TextBlobCache |
435 * TODO move textblob draw calls below context so we can use the call above. | 431 * TODO move textblob draw calls below context so we can use the call above. |
436 */ | 432 */ |
437 static void TextBlobCacheOverBudgetCB(void* data); | 433 static void TextBlobCacheOverBudgetCB(void* data); |
438 | 434 |
439 typedef SkRefCnt INHERITED; | 435 typedef SkRefCnt INHERITED; |
440 }; | 436 }; |
441 | 437 |
442 #endif | 438 #endif |
OLD | NEW |