| 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 <functional>
9 #include <memory>
10
11 #include "flutter/fml/macros.h"
12 #include "impeller/renderer/context.h"
13 #include "impeller/renderer/render_pass.h"
14 #include "impeller/renderer/render_target.h"
15
16 namespace impeller {
17
18 class Surface {
19 public:
20 Surface();
21
22 explicit Surface(const RenderTarget& target_desc);
23
24 virtual ~Surface();
25
26 const ISize& GetSize() const;
27
28 bool IsValid() const;
29
30 const RenderTarget& GetTargetRenderPassDescriptor() const;
31
32 virtual bool Present() const;
33
34 private:
35 RenderTarget desc_;
36 ISize size_;
37
38 bool is_valid_ = false;
39
40 Surface(const Surface&) = delete;
41
42 Surface& operator=(const Surface&) = delete;
43 };
44
45 } // namespace impeller
46
47 #endif // FLUTTER_IMPELLER_RENDERER_SURFACE_H_
impeller::Surface::IsValid
bool IsValid() const
Definition: surface.cc:29
impeller::Surface::~Surface
virtual ~Surface()
impeller::Surface::Present
virtual bool Present() const
Definition: surface.cc:37
impeller::Surface::GetTargetRenderPassDescriptor
const RenderTarget & GetTargetRenderPassDescriptor() const
Definition: surface.cc:33
impeller::Surface
Definition: surface.h:18
impeller::Surface::GetSize
const ISize & GetSize() const
Definition: surface.cc:25
impeller::TSize< int64_t >
render_pass.h
impeller::Surface::Surface
Surface()
Definition: surface.cc:11
impeller::RenderTarget
Definition: render_target.h:38
context.h
render_target.h
impeller
Definition: aiks_blur_unittests.cc:20