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 
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_
const ISize & GetSize() const
Definition: surface.cc:25
const RenderTarget & GetRenderTarget() const
Definition: surface.cc:33
bool IsValid() const
Definition: surface.cc:29
virtual bool Present() const
Definition: surface.cc:37
virtual ~Surface()