Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: include/gpu/GrContext.h

Issue 1565113004: Change to wire up opnames in SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@audittrail-initial
Patch Set: add a bunch of macros to interact with GrAuditTrail Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/GrConfig.h ('k') | include/private/GrAuditTrail.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/gpu/GrConfig.h ('k') | include/private/GrAuditTrail.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698