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

Unified Diff: tools/VisualBench/VisualStreamTimingModule.h

Issue 2018603003: Remove VisualBench and its Android implementation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « tools/VisualBench/VisualSKPBench.cpp ('k') | tools/VisualBench/VisualStreamTimingModule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench/VisualStreamTimingModule.h
diff --git a/tools/VisualBench/VisualStreamTimingModule.h b/tools/VisualBench/VisualStreamTimingModule.h
deleted file mode 100644
index 80c67e808a88abdefc568fe307ea17dc3f8f59a8..0000000000000000000000000000000000000000
--- a/tools/VisualBench/VisualStreamTimingModule.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef VisualStreamTimingModule_DEFINED
-#define VisualStreamTimingModule_DEFINED
-
-#include "VisualModule.h"
-
-#include "TimingStateMachine.h"
-#include "VisualBench.h"
-#include "VisualBenchmarkStream.h"
-
-class SkCanvas;
-
-/*
- * VisualStreamTimingModule is the base class for modules which want to time a stream of Benchmarks.
- *
- * Subclasses should implement renderFrame, which is called for each frame, and timingFinished,
- * which is called when a sample has finished timing.
- */
-class VisualStreamTimingModule : public VisualModule {
-public:
- VisualStreamTimingModule(VisualBench* owner);
- void draw(SkCanvas* canvas) override;
-
-private:
- virtual void renderFrame(SkCanvas*, Benchmark*, int loops)=0;
-
- // subclasses should return true to advance the stream
- virtual bool timingFinished(Benchmark*, int loops, double measurement)=0;
-
- inline void handleInitState(SkCanvas*);
- inline void handleTimingEvent(SkCanvas*, TimingStateMachine::ParentEvents);
-
- TimingStateMachine fTSM;
- SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream;
- enum InitState {
- kNone_InitState,
- kReset_InitState,
- kNewBenchmark_InitState,
- };
- InitState fInitState;
-
- // support framework
- VisualBench* fOwner;
-
- typedef VisualModule INHERITED;
-};
-
-#endif
« no previous file with comments | « tools/VisualBench/VisualSKPBench.cpp ('k') | tools/VisualBench/VisualStreamTimingModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698