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 #pragma once
6 
7 #include <functional>
8 #include <memory>
9 
10 #include "flutter/fml/macros.h"
14 
15 namespace impeller {
16 
17 class Surface {
18  public:
19  Surface();
20 
21  explicit Surface(const RenderTarget& target_desc);
22 
23  virtual ~Surface();
24 
25  const ISize& GetSize() const;
26 
27  bool IsValid() const;
28 
30 
31  virtual bool Present() const;
32 
33  private:
34  RenderTarget desc_;
35  ISize size_;
36 
37  bool is_valid_ = false;
38 
39  FML_DISALLOW_COPY_AND_ASSIGN(Surface);
40 };
41 
42 } // namespace impeller
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:17
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:48
context.h
render_target.h
impeller
Definition: aiks_context.cc:10