Flutter Engine
The Flutter Engine
SvgSlide.h
Go to the documentation of this file.
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
14#include "tools/viewer/Slide.h"
15
16class SkCanvas;
17class SkSVGDOM;
18
19class SvgSlide final : public Slide {
20public:
22 ~SvgSlide() override;
23
24 void load(SkScalar winWidth, SkScalar winHeight) override;
25 void unload() override;
26 void resize(SkScalar, SkScalar) override;
27
28 void draw(SkCanvas*) override;
29private:
30 const SkString fPath;
31
32 sk_sp<SkSVGDOM> fDom;
33};
34
35#endif // SvgSlide_DEFINED
Definition: Slide.h:29
void draw(SkCanvas *) override
~SvgSlide() override
void unload() override
SvgSlide(const SkString &name, const SkString &path)
void load(SkScalar winWidth, SkScalar winHeight) override
void resize(SkScalar, SkScalar) override
float SkScalar
Definition: extension.cpp:12
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32