Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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"
15
16namespace impeller {
17
18class 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
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_
bool IsValid() const
Definition surface.cc:29
virtual ~Surface()
const ISize & GetSize() const
Definition surface.cc:25
virtual bool Present() const
Definition surface.cc:37
const RenderTarget & GetTargetRenderPassDescriptor() const
Definition surface.cc:33