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

Unified Diff: include/gpu/GrContext.h

Issue 1572553002: Create stub GrAuditTrail class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: minor nit 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gpu.gypi ('k') | include/private/GrAuditTrail.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 39477e0db81fbdc0875aec82f4220664336be11f..a49d141810cc857441df5ad19162589b1235b567 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -17,6 +17,7 @@
#include "SkMatrix.h"
#include "SkPathEffect.h"
#include "SkTypes.h"
+#include "../private/GrAuditTrail.h"
#include "../private/GrSingleOwner.h"
#include "../private/SkMutex.h"
@@ -358,6 +359,8 @@ public:
/** Get pointer to atlas texture for given mask format */
GrTexture* getFontAtlasTexture(GrMaskFormat format);
+ SkString dumpAuditTrailToJson() const { return fAuditTrail.toJson(); }
+
private:
GrGpu* fGpu;
const GrCaps* fCaps;
@@ -405,6 +408,8 @@ private:
SkAutoTDelete<GrDrawingManager> fDrawingManager;
+ GrAuditTrail fAuditTrail;
+
// TODO: have the CMM use drawContexts and rm this friending
friend class GrClipMaskManager; // the CMM is friended just so it can call 'drawingManager'
friend class GrDrawingManager; // for access to drawingManager for ProgramUnitTest
« no previous file with comments | « gyp/gpu.gypi ('k') | include/private/GrAuditTrail.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698