| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe
r below should be | 352 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe
r below should be |
| 353 to an array of 3 entries */ | 353 to an array of 3 entries */ |
| 354 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); | 354 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); |
| 355 | 355 |
| 356 /** Enumerates all cached GPU resources and dumps their memory to traceMemor
yDump. */ | 356 /** Enumerates all cached GPU resources and dumps their memory to traceMemor
yDump. */ |
| 357 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; | 357 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; |
| 358 | 358 |
| 359 /** Get pointer to atlas texture for given mask format */ | 359 /** Get pointer to atlas texture for given mask format */ |
| 360 GrTexture* getFontAtlasTexture(GrMaskFormat format); | 360 GrTexture* getFontAtlasTexture(GrMaskFormat format); |
| 361 | 361 |
| 362 SkString dumpAuditTrailToJson() const { return fAuditTrail.toJson(); } | 362 GrAuditTrail* getAuditTrail() { return &fAuditTrail; } |
| 363 | 363 |
| 364 private: | 364 private: |
| 365 GrGpu* fGpu; | 365 GrGpu* fGpu; |
| 366 const GrCaps* fCaps; | 366 const GrCaps* fCaps; |
| 367 GrResourceCache* fResourceCache; | 367 GrResourceCache* fResourceCache; |
| 368 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider | 368 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider |
| 369 // is in a private header. | 369 // is in a private header. |
| 370 union { | 370 union { |
| 371 GrResourceProvider* fResourceProvider; | 371 GrResourceProvider* fResourceProvider; |
| 372 GrTextureProvider* fTextureProvider; | 372 GrTextureProvider* fTextureProvider; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 /** | 449 /** |
| 450 * A callback similar to the above for use by the TextBlobCache | 450 * A callback similar to the above for use by the TextBlobCache |
| 451 * TODO move textblob draw calls below context so we can use the call above. | 451 * TODO move textblob draw calls below context so we can use the call above. |
| 452 */ | 452 */ |
| 453 static void TextBlobCacheOverBudgetCB(void* data); | 453 static void TextBlobCacheOverBudgetCB(void* data); |
| 454 | 454 |
| 455 typedef SkRefCnt INHERITED; | 455 typedef SkRefCnt INHERITED; |
| 456 }; | 456 }; |
| 457 | 457 |
| 458 #endif | 458 #endif |
| OLD | NEW |