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 
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 
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::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:12
impeller::Surface::GetSize
const ISize & GetSize() const
Definition: surface.cc:25
impeller::TSize
Definition: size.h:19
impeller::Surface::Surface
Surface()
Definition: surface.cc:11
impeller::RenderTarget
Definition: render_target.h:38
render_target.h
impeller
Definition: aiks_blend_unittests.cc:18