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

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

Issue 1336043003: Add viewer mode to VisualBench. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix init order Created 5 years, 3 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/VisualLightweightBenchModule.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 * 6 *
7 */ 7 */
8 8
9 #ifndef VisualModule_DEFINED 9 #ifndef VisualModule_DEFINED
10 #define VisualModule_DEFINED 10 #define VisualModule_DEFINED
11 11
12 #include "SkRefCnt.h" 12 #include "SkRefCnt.h"
13 13
14 class SkCanvas; 14 class SkCanvas;
15 15
16 /* 16 /*
17 * VisualModule is the base class for all of the various types of activities Vis ualBench supports. 17 * VisualModule is the base class for all of the various types of activities Vis ualBench supports.
18 * 18 *
19 * The common theme tying these all together is they need to display an image to the screen. Later, 19 * The common theme tying these all together is they need to display an image to the screen. Later,
20 * on we some modules will also be interactive 20 * on we some modules will also be interactive
21 */ 21 */
22 class VisualModule : public SkRefCnt { 22 class VisualModule : public SkRefCnt {
23 public: 23 public:
24 virtual ~VisualModule() {} 24 virtual ~VisualModule() {}
25 25
26 virtual void draw(SkCanvas* canvas)=0; 26 virtual void draw(SkCanvas* canvas)=0;
27 27
28 virtual bool onHandleChar(SkUnichar unichar) = 0;
29
28 private: 30 private:
29 typedef SkRefCnt INHERITED; 31 typedef SkRefCnt INHERITED;
30 }; 32 };
31 33
32 #endif 34 #endif
OLDNEW
« no previous file with comments | « tools/VisualBench/VisualLightweightBenchModule.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698