Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
playground_impl_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_PLAYGROUND_BACKEND_GLES_PLAYGROUND_IMPL_GLES_H_
6#define FLUTTER_IMPELLER_PLAYGROUND_BACKEND_GLES_PLAYGROUND_IMPL_GLES_H_
7
9
10namespace impeller {
11
12class PlaygroundImplGLES final : public PlaygroundImpl {
13 public:
14 explicit PlaygroundImplGLES(PlaygroundSwitches switches);
15
17
19 const std::shared_ptr<Capabilities>& capabilities) override;
20
21 private:
22 class ReactorWorker;
23
24 static void DestroyWindowHandle(WindowHandle handle);
25 using UniqueHandle = std::unique_ptr<void, decltype(&DestroyWindowHandle)>;
26 UniqueHandle handle_;
27 std::shared_ptr<ReactorWorker> worker_;
28 const bool use_angle_;
29 void* angle_glesv2_;
30 std::shared_ptr<Context> context_;
31
32 // |PlaygroundImpl|
33 std::shared_ptr<Context> GetContext() const override;
34
35 // |PlaygroundImpl|
36 WindowHandle GetWindowHandle() const override;
37
38 // |PlaygroundImpl|
39 std::unique_ptr<Surface> AcquireSurfaceFrame(
40 std::shared_ptr<Context> context) override;
41
42 // |PlaygroundImpl|
43 Playground::GLProcAddressResolver CreateGLProcAddressResolver()
44 const override;
45
46 RuntimeStageBackend GetRuntimeStageBackend() const override;
47
49
50 PlaygroundImplGLES& operator=(const PlaygroundImplGLES&) = delete;
51};
52
53} // namespace impeller
54
55#endif // FLUTTER_IMPELLER_PLAYGROUND_BACKEND_GLES_PLAYGROUND_IMPL_GLES_H_
std::function< void *(const char *proc_name)> GLProcAddressResolver
Definition playground.h:108
fml::Status SetCapabilities(const std::shared_ptr< Capabilities > &capabilities) override
fuchsia::ui::composition::ParentViewportWatcherHandle handle_
std::shared_ptr< ContextGLES > context