From 8debd89f6360dbf4b19c17e32bb0328bd7a08576 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Tue, 19 May 2015 15:05:24 -0700 Subject: small cleanup of GrAtlas BUG=skia: Committed: https://skia.googlesource.com/skia/+/d706f11b6e3f4398ab93b23458a7599ee324be2c Review URL: https://codereview.chromium.org/1142263002 --- src/gpu/GrDrawTarget.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/gpu/GrDrawTarget.h') diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index e0b96b2a3b..a5e3b8efee 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -202,23 +202,6 @@ public: */ virtual void purgeResources() {}; - /////////////////////////////////////////////////////////////////////////// - // Draw execution tracking (for font atlases and other resources) - class DrawToken { - public: - DrawToken(GrDrawTarget* drawTarget, uint32_t drawID) : - fDrawTarget(drawTarget), fDrawID(drawID) {} - - bool isIssued() { return fDrawTarget && fDrawTarget->isIssued(fDrawID); } - - private: - GrDrawTarget* fDrawTarget; - uint32_t fDrawID; // this may wrap, but we're doing direct comparison - // so that should be okay - }; - - virtual DrawToken getCurrentDrawToken() { return DrawToken(this, 0); } - bool programUnitTest(int maxStages); protected: -- cgit v1.2.3