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

Side by Side Diff: tools/vulkan/viewer/GMSlide.h

Issue 1903253003: VulkanViewer on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 4 years, 8 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/vulkan/android/main_android.cpp ('k') | tools/vulkan/viewer/SKPSlide.h » ('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 GMSlide_DEFINED 8 #ifndef GMSlide_DEFINED
9 #define GMSlide_DEFINED 9 #define GMSlide_DEFINED
10 10
11 #include "Slide.h" 11 #include "Slide.h"
12 #include "gm.h" 12 #include "gm.h"
13 13
14 class GMSlide : public Slide { 14 class GMSlide : public Slide {
15 public: 15 public:
16 GMSlide(skiagm::GM* gm); 16 GMSlide(skiagm::GM* gm);
17 ~GMSlide() override; 17 ~GMSlide() override;
18 18
19 SkISize getDimensions() const override { return fGM->getISize(); }
20
19 void draw(SkCanvas* canvas) override; 21 void draw(SkCanvas* canvas) override;
20 bool animate(const SkAnimTimer&) override; 22 bool animate(const SkAnimTimer&) override;
21 23
22 private: 24 private:
23 skiagm::GM* fGM; 25 skiagm::GM* fGM;
24 }; 26 };
25 27
26 28
27 #endif 29 #endif
OLDNEW
« no previous file with comments | « tools/vulkan/android/main_android.cpp ('k') | tools/vulkan/viewer/SKPSlide.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698