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

Side by Side Diff: tools/VisualBench/VisualInteractiveModule.h

Issue 2018603003: Remove VisualBench and its Android implementation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « tools/VisualBench/VisualFlags.cpp ('k') | tools/VisualBench/VisualInteractiveModule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef VisualInteractiveModule_DEFINED
9 #define VisualInteractiveModule_DEFINED
10
11 #include "VisualStreamTimingModule.h"
12
13 class SkCanvas;
14
15 /*
16 * This module for VisualBench is designed to display stats data dynamically
17 */
18 class VisualInteractiveModule : public VisualStreamTimingModule {
19 public:
20 // TODO get rid of backpointer
21 VisualInteractiveModule(VisualBench* owner);
22
23 bool onHandleChar(SkUnichar c) override;
24
25 private:
26 void drawStats(SkCanvas*);
27 void renderFrame(SkCanvas*, Benchmark*, int loops) override;
28 bool timingFinished(Benchmark*, int loops, double measurement) override;
29
30 static const int kMeasurementCount = 64; // should be power of 2 for fast m od
31 double fMeasurements[kMeasurementCount];
32 int fCurrentMeasurement;
33 bool fAdvance;
34
35 typedef VisualStreamTimingModule INHERITED;
36 };
37
38 #endif
OLDNEW
« no previous file with comments | « tools/VisualBench/VisualFlags.cpp ('k') | tools/VisualBench/VisualInteractiveModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698