| Flutter Impeller |

surface.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_RENDERER_SURFACE_H_
6 #define FLUTTER_IMPELLER_RENDERER_SURFACE_H_
7
8 #include "impeller/renderer/render_target.h"
9
10 namespace impeller {
11
12 class Surface {
13 public:
14 Surface();
15
16 explicit Surface(const RenderTarget& target_desc);
17
18 virtual ~Surface();
19
20 const ISize& GetSize() const;
21
22 bool IsValid() const;
23
24 const RenderTarget& GetRenderTarget() const;
25
26 virtual bool Present() const;
27
28 private:
29 RenderTarget desc_;
30 ISize size_;
31
32 bool is_valid_ = false;
33
34 Surface(const Surface&) = delete;
35
36 Surface& operator=(const Surface&) = delete;
37 };
38
39 } // namespace impeller
40
41 #endif // FLUTTER_IMPELLER_RENDERER_SURFACE_H_
impeller::RenderTarget
Definition: render_target.h:38
impeller::Surface
Definition: surface.h:12
impeller::Surface::GetSize
const ISize & GetSize() const
Definition: surface.cc:25
impeller::Surface::GetRenderTarget
const RenderTarget & GetRenderTarget() const
Definition: surface.cc:33
impeller::Surface::IsValid
bool IsValid() const
Definition: surface.cc:29
impeller::Surface::Present
virtual bool Present() const
Definition: surface.cc:37
impeller::Surface::~Surface
virtual ~Surface()
impeller::Surface::Surface
Surface()
Definition: surface.cc:11
impeller
Definition: allocation.cc:12
render_target.h
impeller::TSize
Definition: size.h:25