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

Unified Diff: tools/VisualBench/VisualStreamTimingModule.h

Issue 1413713006: Wire up configurations properly in VisualBench (Closed) Base URL: https://skia.googlesource.com/skia.git@detachattach
Patch Set: Created 5 years, 2 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/VisualLightweightBenchModule.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
index 5dbec693fa969d6294e09c267cf36c24cd11fef5..7bba3af193e0f3ce7f434296b78504f81ed1fa5b 100644
--- a/tools/VisualBench/VisualStreamTimingModule.h
+++ b/tools/VisualBench/VisualStreamTimingModule.h
@@ -27,6 +27,9 @@ public:
VisualStreamTimingModule(VisualBench* owner, bool preWarmBeforeSample);
void draw(SkCanvas* canvas) override;
+protected:
+ VisualBench* owner() { return fOwner; }
+
private:
virtual void renderFrame(SkCanvas*, Benchmark*, int loops)=0;
@@ -39,6 +42,7 @@ private:
TimingStateMachine fTSM;
SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream;
enum InitState {
+ kInitial_InitState,
kNone_InitState,
kReset_InitState,
kNewBenchmark_InitState,
« no previous file with comments | « tools/VisualBench/VisualLightweightBenchModule.cpp ('k') | tools/VisualBench/VisualStreamTimingModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698