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

Side by Side Diff: tools/viewer/Slide.h

Issue 2063883002: Revert of Add samples to Viewer. (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/viewer/SampleSlide.cpp ('k') | tools/viewer/Viewer.cpp » ('j') | 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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef Slide_DEFINED 8 #ifndef Slide_DEFINED
9 #define Slide_DEFINED 9 #define Slide_DEFINED
10 10
11 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
12 #include "SkSize.h" 12 #include "SkSize.h"
13 #include "SkString.h" 13 #include "SkString.h"
14 14
15 class SkCanvas; 15 class SkCanvas;
16 class SkAnimTimer; 16 class SkAnimTimer;
17 17
18 class Slide : public SkRefCnt { 18 class Slide : public SkRefCnt {
19 public: 19 public:
20 virtual ~Slide() {} 20 virtual ~Slide() {}
21 21
22 virtual SkISize getDimensions() const { 22 virtual SkISize getDimensions() const = 0;
23 return SkISize::Make(0, 0);
24 }
25 23
26 virtual void draw(SkCanvas* canvas) = 0; 24 virtual void draw(SkCanvas* canvas) = 0;
27 virtual bool animate(const SkAnimTimer&) { return false; } 25 virtual bool animate(const SkAnimTimer&) { return false; }
28 virtual void load(SkScalar winWidth, SkScalar winHeight) {} 26 virtual void load() {}
29 virtual void unload() {} 27 virtual void unload() {}
30 28
31 SkString getName() { return fName; } 29 SkString getName() { return fName; }
32 30
33 protected: 31 protected:
34 SkString fName; 32 SkString fName;
35 }; 33 };
36 34
37 35
38 #endif 36 #endif
OLDNEW
« no previous file with comments | « tools/viewer/SampleSlide.cpp ('k') | tools/viewer/Viewer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698