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

Side by Side Diff: tools/viewer/SKPSlide.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 | « samplecode/SampleClock.cpp ('k') | tools/viewer/SKPSlide.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 SKPSlide_DEFINED 8 #ifndef SKPSlide_DEFINED
9 #define SKPSlide_DEFINED 9 #define SKPSlide_DEFINED
10 10
11 #include "Slide.h" 11 #include "Slide.h"
12 #include "SkPicture.h" 12 #include "SkPicture.h"
13 13
14 class SKPSlide : public Slide { 14 class SKPSlide : public Slide {
15 public: 15 public:
16 SKPSlide(const SkString& name, const SkString& path); 16 SKPSlide(const SkString& name, const SkString& path);
17 ~SKPSlide() override; 17 ~SKPSlide() override;
18 18
19 SkISize getDimensions() const override { return fCullRect.size(); } 19 SkISize getDimensions() const override { return fCullRect.size(); }
20 20
21 void draw(SkCanvas* canvas) override; 21 void draw(SkCanvas* canvas) override;
22 void load(SkScalar winWidth, SkScalar winHeight) override; 22 void load() override;
23 void unload() override; 23 void unload() override;
24 24
25 private: 25 private:
26 SkString fPath; 26 SkString fPath;
27 sk_sp<const SkPicture> fPic; 27 sk_sp<const SkPicture> fPic;
28 SkIRect fCullRect; 28 SkIRect fCullRect;
29 }; 29 };
30 30
31 #endif 31 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleClock.cpp ('k') | tools/viewer/SKPSlide.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698