• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 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 SvgSlide_DEFINED
9 #define SvgSlide_DEFINED
10 
11 #include "tools/viewer/Slide.h"
12 
13 class SkSVGDOM;
14 
15 class SvgSlide final : public Slide {
16 public:
17     SvgSlide(const SkString& name, const SkString& path);
18 
19     void load(SkScalar winWidth, SkScalar winHeight) override;
20     void unload() override;
21     void resize(SkScalar, SkScalar) override;
22 
23     void draw(SkCanvas*) override;
24 private:
25     const SkString  fPath;
26 
27     sk_sp<SkSVGDOM> fDom;
28 
29     using INHERITED = Slide;
30 };
31 
32 #endif // SvgSlide_DEFINED
33