| Flutter Impeller |

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 #pragma once
6
7 #include "flutter/fml/macros.h"
8 #include "impeller/playground/playground_impl.h"
9
10 namespace impeller {
11
12 class PlaygroundImplGLES final : public PlaygroundImpl {
13 public:
14 explicit PlaygroundImplGLES(PlaygroundSwitches switches);
15
16 ~PlaygroundImplGLES();
17
18 private:
19 class ReactorWorker;
20
21 static void DestroyWindowHandle(WindowHandle handle);
22 using UniqueHandle = std::unique_ptr<void, decltype(&DestroyWindowHandle)>;
23 UniqueHandle handle_;
24 std::shared_ptr<ReactorWorker> worker_;
25
26 // |PlaygroundImpl|
27 std::shared_ptr<Context> GetContext() const override;
28
29 // |PlaygroundImpl|
30 WindowHandle GetWindowHandle() const override;
31
32 // |PlaygroundImpl|
33 std::unique_ptr<Surface> AcquireSurfaceFrame(
34 std::shared_ptr<Context> context) override;
35
36 FML_DISALLOW_COPY_AND_ASSIGN(PlaygroundImplGLES);
37 };
38
39 } // namespace impeller
impeller::PlaygroundImplGLES::~PlaygroundImplGLES
~PlaygroundImplGLES()
impeller::PlaygroundImplGLES
Definition: playground_impl_gles.h:12
impeller::PlaygroundImplGLES::ReactorWorker
Definition: playground_impl_gles.cc:20
impeller::PlaygroundImpl
Definition: playground_impl.h:17
impeller::PlaygroundSwitches
Definition: switches.h:15
impeller::PlaygroundImplGLES::PlaygroundImplGLES
PlaygroundImplGLES(PlaygroundSwitches switches)
Definition: playground_impl_gles.cc:54
playground_impl.h
impeller
Definition: aiks_context.cc:10
impeller::PlaygroundImpl::WindowHandle
void * WindowHandle
Definition: playground_impl.h:24