Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
tools
viewer
SKPSlide.h
Go to the documentation of this file.
1
/*
2
* Copyright 2016 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 SKPSlide_DEFINED
9
#define SKPSlide_DEFINED
10
11
#include "
include/core/SkRect.h
"
12
#include "
include/core/SkRefCnt.h
"
13
#include "
include/core/SkScalar.h
"
14
#include "
include/core/SkSize.h
"
15
#include "
tools/viewer/Slide.h
"
16
17
#include <memory>
18
19
class
SkCanvas
;
20
class
SkPicture
;
21
class
SkStream
;
22
class
SkString
;
23
24
class
SKPSlide
:
public
Slide
{
25
public
:
26
SKPSlide
(
const
SkString
&
name
,
const
SkString
& path);
27
SKPSlide
(
const
SkString
&
name
, std::unique_ptr<SkStream>);
28
~SKPSlide
()
override
;
29
30
SkISize
getDimensions
()
const override
{
return
fCullRect.
size
(); }
31
32
void
draw
(
SkCanvas
* canvas)
override
;
33
void
load
(
SkScalar
winWidth,
SkScalar
winHeight)
override
;
34
void
unload
()
override
;
35
36
private
:
37
std::unique_ptr<SkStream> fStream;
38
sk_sp<const SkPicture>
fPic;
39
SkIRect
fCullRect;
40
};
41
42
#endif
SkRect.h
SkRefCnt.h
SkScalar.h
SkSize.h
Slide.h
SKPSlide
Definition
SKPSlide.h:24
SKPSlide::draw
void draw(SkCanvas *canvas) override
Definition
SKPSlide.cpp:30
SKPSlide::unload
void unload() override
Definition
SKPSlide.cpp:60
SKPSlide::load
void load(SkScalar winWidth, SkScalar winHeight) override
Definition
SKPSlide.cpp:46
SKPSlide::getDimensions
SkISize getDimensions() const override
Definition
SKPSlide.h:30
SKPSlide::~SKPSlide
~SKPSlide() override
Definition
SKPSlide.cpp:28
SkCanvas
Definition
SkCanvas.h:106
SkPicture
Definition
SkPicture.h:44
SkStream
Definition
SkStream.h:29
SkString
Definition
SkString.h:118
Slide
Definition
Slide.h:29
sk_sp
Definition
SkRefCnt.h:220
SkScalar
float SkScalar
Definition
extension.cpp:12
name
const char * name
Definition
fuchsia.cc:50
SkIRect
Definition
SkRect.h:32
SkIRect::size
constexpr SkISize size() const
Definition
SkRect.h:172
SkISize
Definition
SkSize.h:16
Generated on Fri Apr 26 2024 06:18:15 for Flutter Engine by
1.9.8