Flutter Impeller
context_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_TOOLKIT_INTEROP_BACKEND_GLES_CONTEXT_GLES_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_GLES_CONTEXT_GLES_H_
7 
8 #include <functional>
9 #include <memory>
10 
13 
14 namespace impeller::interop {
15 
16 class ContextGLES final : public Context {
17  public:
19  std::function<void*(const char* gl_proc_name)> proc_address_callback);
20 
22  std::shared_ptr<impeller::Context> context,
23  std::shared_ptr<ReactorWorkerGLES> worker = nullptr);
24 
26 
27  // |Context|
28  ~ContextGLES() override;
29 
30  ContextGLES(const ContextGLES&) = delete;
31 
32  ContextGLES& operator=(const ContextGLES&) = delete;
33 
34  private:
35  std::shared_ptr<ReactorWorkerGLES> worker_;
36 
37  ContextGLES(std::shared_ptr<impeller::Context> context,
38  std::shared_ptr<ReactorWorkerGLES> worker);
39 };
40 
41 } // namespace impeller::interop
42 
43 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_GLES_CONTEXT_GLES_H_
ContextGLES & operator=(const ContextGLES &)=delete
static ScopedObject< Context > Create(std::function< void *(const char *gl_proc_name)> proc_address_callback)
Definition: context_gles.cc:14
ContextGLES(const ContextGLES &)=delete