Flutter Impeller
unique_handle_gles.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_BACKEND_GLES_UNIQUE_HANDLE_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_UNIQUE_HANDLE_GLES_H_
7 
10 
11 namespace impeller {
12 
13 //------------------------------------------------------------------------------
14 /// @brief A unique handle to an OpenGL object. The collection of this
15 /// handle scheduled the destruction of the associated OpenGL object
16 /// in the reactor.
17 ///
19  public:
21 
23 
25 
27 
28  UniqueHandleGLES(const UniqueHandleGLES&) = delete;
29 
31 
32  const HandleGLES& Get() const;
33 
34  bool IsValid() const;
35 
36  private:
37  ReactorGLES::Ref reactor_ = nullptr;
39 };
40 
41 } // namespace impeller
42 
43 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_UNIQUE_HANDLE_GLES_H_
impeller::HandleGLES::DeadHandle
static HandleGLES DeadHandle()
Creates a dead handle.
Definition: handle_gles.h:45
impeller::UniqueHandleGLES::IsValid
bool IsValid() const
Definition: unique_handle_gles.cc:31
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition: reactor_gles.h:86
impeller::HandleType
HandleType
Definition: handle_gles.h:18
impeller::UniqueHandleGLES::Get
const HandleGLES & Get() const
Definition: unique_handle_gles.cc:27
impeller::UniqueHandleGLES::UniqueHandleGLES
UniqueHandleGLES(ReactorGLES::Ref reactor, HandleType type)
Definition: unique_handle_gles.cc:11
impeller::UniqueHandleGLES::operator=
UniqueHandleGLES & operator=(const UniqueHandleGLES &)=delete
type
GLenum type
Definition: blit_command_gles.cc:127
impeller::HandleGLES
Represents a handle to an underlying OpenGL object. Unlike OpenGL object handles, these handles can b...
Definition: handle_gles.h:36
impeller::UniqueHandleGLES::~UniqueHandleGLES
~UniqueHandleGLES()
Definition: unique_handle_gles.cc:21
reactor_gles.h
handle_gles.h
impeller
Definition: allocation.cc:12
impeller::UniqueHandleGLES
A unique handle to an OpenGL object. The collection of this handle scheduled the destruction of the a...
Definition: unique_handle_gles.h:18