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
11
#include "
impeller/toolkit/interop/backend/gles/reactor_worker_gles.h
"
12
#include "
impeller/toolkit/interop/context.h
"
13
14
namespace
impeller::interop
{
15
16
class
ContextGLES
final :
public
Context
{
17
public
:
18
static
ScopedObject<Context>
Create
(
19
std::function<
void
*(
const
char
* gl_proc_name)> proc_address_callback);
20
21
static
ScopedObject<Context>
Create
(
22
std::shared_ptr<impeller::Context> context,
23
std::shared_ptr<ReactorWorkerGLES> worker =
nullptr
);
24
25
ContextGLES
();
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_
impeller::interop::ContextGLES
Definition:
context_gles.h:16
impeller::interop::ContextGLES::~ContextGLES
~ContextGLES() override
impeller::interop::ContextGLES::operator=
ContextGLES & operator=(const ContextGLES &)=delete
impeller::interop::ContextGLES::Create
static ScopedObject< Context > Create(std::function< void *(const char *gl_proc_name)> proc_address_callback)
Definition:
context_gles.cc:14
impeller::interop::ContextGLES::ContextGLES
ContextGLES(const ContextGLES &)=delete
impeller::interop::ContextGLES::ContextGLES
ContextGLES()
impeller::interop::Context
Definition:
context.h:16
impeller::interop::ScopedObject
Definition:
object.h:67
impeller::interop
Definition:
context_gles.cc:12
reactor_worker_gles.h
context.h
impeller
toolkit
interop
backend
gles
context_gles.h
Generated by
1.9.1