aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrContext.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-01-08 07:19:47 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-08 07:19:47 -0800
commit27a48dc0cddad7f3531dcf0d39d290e7233e3e76 (patch)
tree28db08c91e0250c67d8e093ca68c87d11d05a701 /include/gpu/GrContext.h
parent55c86abedc7dcc76f5f04a256e46bb3bb065b2cb (diff)
Create stub GrAuditTrail class
Diffstat (limited to 'include/gpu/GrContext.h')
-rw-r--r--include/gpu/GrContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 39477e0db8..a49d141810 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