| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 GrAuditTrail* getAuditTrail() { return &fAuditTrail; } | 362 GrAuditTrail* getAuditTrail() { return &fAuditTrail; } |
| 363 | 363 |
| 364 /** This is only useful for debug purposes */ |
| 365 SkDEBUGCODE(GrSingleOwner* debugSingleOwner() const { return &fSingleOwner;
} ) |
| 366 |
| 364 private: | 367 private: |
| 365 GrGpu* fGpu; | 368 GrGpu* fGpu; |
| 366 const GrCaps* fCaps; | 369 const GrCaps* fCaps; |
| 367 GrResourceCache* fResourceCache; | 370 GrResourceCache* fResourceCache; |
| 368 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider | 371 // this union exists because the inheritance of GrTextureProvider->GrResourc
eProvider |
| 369 // is in a private header. | 372 // is in a private header. |
| 370 union { | 373 union { |
| 371 GrResourceProvider* fResourceProvider; | 374 GrResourceProvider* fResourceProvider; |
| 372 GrTextureProvider* fTextureProvider; | 375 GrTextureProvider* fTextureProvider; |
| 373 }; | 376 }; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 /** | 452 /** |
| 450 * A callback similar to the above for use by the TextBlobCache | 453 * 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. | 454 * TODO move textblob draw calls below context so we can use the call above. |
| 452 */ | 455 */ |
| 453 static void TextBlobCacheOverBudgetCB(void* data); | 456 static void TextBlobCacheOverBudgetCB(void* data); |
| 454 | 457 |
| 455 typedef SkRefCnt INHERITED; | 458 typedef SkRefCnt INHERITED; |
| 456 }; | 459 }; |
| 457 | 460 |
| 458 #endif | 461 #endif |
| OLD | NEW |