5#ifndef FLUTTER_SHELL_COMMON_SHELL_TEST_PLATFORM_VIEW_GL_H_
6#define FLUTTER_SHELL_COMMON_SHELL_TEST_PLATFORM_VIEW_GL_H_
8#include "flutter/shell/common/shell_test_external_view_embedder.h"
9#include "flutter/shell/common/shell_test_platform_view.h"
10#include "flutter/shell/gpu/gpu_surface_gl_delegate.h"
11#include "flutter/testing/test_gl_surface.h"
22 std::shared_ptr<ShellTestVsyncClock> vsync_clock,
24 std::shared_ptr<ShellTestExternalViewEmbedder>
25 shell_test_external_view_embedder);
35 return impeller_context_;
39 std::shared_ptr<impeller::ContextGLES> impeller_context_;
45 std::shared_ptr<ShellTestVsyncClock> vsync_clock_;
47 std::shared_ptr<ShellTestExternalViewEmbedder>
48 shell_test_external_view_embedder_;
51 std::unique_ptr<Surface> CreateRenderingSurface()
override;
54 std::shared_ptr<ExternalViewEmbedder> CreateExternalViewEmbedder()
override;
57 std::unique_ptr<VsyncWaiter> CreateVSyncWaiter()
override;
63 std::unique_ptr<GLContextResult> GLContextMakeCurrent()
override;
66 bool GLContextClearCurrent()
override;
69 bool GLContextPresent(
const GLPresentInfo& present_info)
override;
std::function< void *(const char *)> GLProcResolver
std::function< std::unique_ptr< VsyncWaiter >()> CreateVsyncWaiter
std::function< std::unique_ptr< PointerDataDispatcher >(PointerDataDispatcher::Delegate &)> PointerDataDispatcherMaker
Signature for constructing PointerDataDispatcher.