From 683e90611c8a536c3c5feedea27bbbefedf746d2 Mon Sep 17 00:00:00 2001 From: mtklein Date: Wed, 18 Jun 2014 07:15:48 -0700 Subject: Remove SkBenchmark::postDraw. Only one bench used this feature, and it's for things that'd be done by the destructor anyway. BUG=skia: R=bsalomon@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/329853007 --- bench/PathBench.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'bench/PathBench.cpp') diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp index e11aad78f0..4b21ccf7f1 100644 --- a/bench/PathBench.cpp +++ b/bench/PathBench.cpp @@ -339,10 +339,6 @@ protected: this->restartMakingPaths(); } - virtual void onPostDraw() SK_OVERRIDE { - this->finishedMakingPaths(); - } - private: SkPath fPath; @@ -373,10 +369,6 @@ protected: fCopies[idx] = fPaths[idx]; } } - virtual void onPostDraw() SK_OVERRIDE { - fPaths.reset(0); - fCopies.reset(0); - } private: enum { @@ -424,11 +416,6 @@ protected: } } - virtual void onPostDraw() SK_OVERRIDE { - fPaths.reset(0); - fTransformed.reset(0); - } - private: enum { // must be a pow 2 @@ -470,11 +457,6 @@ protected: } } - virtual void onPostDraw() SK_OVERRIDE { - fPaths.reset(0); - fCopies.reset(0); - } - private: bool fParity; // attempt to keep compiler from optimizing out the == enum { @@ -572,11 +554,6 @@ protected: } } - virtual void onPostDraw() SK_OVERRIDE { - fPaths0.reset(0); - fPaths1.reset(0); - } - private: AddType fType; // or reverseAddPath enum { @@ -808,10 +785,6 @@ private: } } - virtual void onPostDraw() SK_OVERRIDE { - fQueryRects.setCount(0); - } - enum { kQueryRectCnt = 400, }; -- cgit v1.2.3