From 27a48dc0cddad7f3531dcf0d39d290e7233e3e76 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Fri, 8 Jan 2016 07:19:47 -0800 Subject: Create stub GrAuditTrail class BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1572553002 Review URL: https://codereview.chromium.org/1572553002 --- include/gpu/GrContext.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/gpu/GrContext.h') 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 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 -- cgit v1.2.3