Flutter Engine
The Flutter Engine
|
#include <embedder_test_context_gl.h>
Public Types | |
using | GLGetFBOCallback = std::function< void(FlutterFrameInfo frame_info)> |
using | GLPopulateExistingDamageCallback = std::function< void(intptr_t id, FlutterDamage *existing_damage)> |
using | GLPresentCallback = std::function< void(FlutterPresentInfo present_info)> |
Protected Member Functions | |
virtual void | SetupCompositor () override |
Protected Member Functions inherited from flutter::testing::EmbedderTestContext | |
FlutterUpdateSemanticsCallback2 | GetUpdateSemanticsCallback2Hook () |
FlutterUpdateSemanticsCallback | GetUpdateSemanticsCallbackHook () |
FlutterUpdateSemanticsNodeCallback | GetUpdateSemanticsNodeCallbackHook () |
FlutterUpdateSemanticsCustomActionCallback | GetUpdateSemanticsCustomActionCallbackHook () |
FlutterChannelUpdateCallback | GetChannelUpdateCallbackHook () |
void | SetupAOTMappingsIfNecessary () |
void | SetupAOTDataIfNecessary () |
void | FireIsolateCreateCallbacks () |
void | SetNativeResolver () |
FlutterTransformation | GetRootSurfaceTransformation () |
void | PlatformMessageCallback (const FlutterPlatformMessage *message) |
void | FireRootSurfacePresentCallbackIfPresent (const std::function< sk_sp< SkImage >(void)> &image_callback) |
void | SetNextSceneCallback (const NextSceneCallback &next_scene_callback) |
FML_DISALLOW_COPY_AND_ASSIGN (EmbedderTestContext) | |
Private Member Functions | |
void | SetupSurface (SkISize surface_size) override |
Friends | |
class | EmbedderConfigBuilder |
Definition at line 14 of file embedder_test_context_gl.h.
using flutter::testing::EmbedderTestContextGL::GLGetFBOCallback = std::function<void(FlutterFrameInfo frame_info)> |
Definition at line 16 of file embedder_test_context_gl.h.
using flutter::testing::EmbedderTestContextGL::GLPopulateExistingDamageCallback = std::function<void(intptr_t id, FlutterDamage* existing_damage)> |
Definition at line 17 of file embedder_test_context_gl.h.
using flutter::testing::EmbedderTestContextGL::GLPresentCallback = std::function<void(FlutterPresentInfo present_info)> |
Definition at line 19 of file embedder_test_context_gl.h.
|
explicit |
Definition at line 22 of file embedder_test_context_gl.cc.
|
override |
Definition at line 25 of file embedder_test_context_gl.cc.
|
overridevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 127 of file embedder_test_context_gl.cc.
|
overridevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 123 of file embedder_test_context_gl.cc.
uint32_t flutter::testing::EmbedderTestContextGL::GetWindowFBOId | ( | ) | const |
Definition at line 131 of file embedder_test_context_gl.cc.
void * flutter::testing::EmbedderTestContextGL::GLGetProcAddress | ( | const char * | name | ) |
Definition at line 118 of file embedder_test_context_gl.cc.
void flutter::testing::EmbedderTestContextGL::GLPopulateExistingDamage | ( | const intptr_t | id, |
FlutterDamage * | existing_damage | ||
) |
Definition at line 97 of file embedder_test_context_gl.cc.
void flutter::testing::EmbedderTestContextGL::SetGLGetFBOCallback | ( | GLGetFBOCallback | callback | ) |
Sets a callback that will be invoked (on the raster task runner) when the engine asks the embedder for a new FBO ID at the updated size.
[in] | callback | The callback to set. The previous callback will be un-registered. |
Definition at line 64 of file embedder_test_context_gl.cc.
void flutter::testing::EmbedderTestContextGL::SetGLPopulateExistingDamageCallback | ( | GLPopulateExistingDamageCallback | callback | ) |
Definition at line 69 of file embedder_test_context_gl.cc.
void flutter::testing::EmbedderTestContextGL::SetGLPresentCallback | ( | GLPresentCallback | callback | ) |
Sets a callback that will be invoked (on the raster task runner) when the engine presents an fbo that was given by the embedder.
[in] | callback | The callback to set. The previous callback will be un-registered. |
Definition at line 75 of file embedder_test_context_gl.cc.
|
overrideprotectedvirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 136 of file embedder_test_context_gl.cc.
|
overrideprivatevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 29 of file embedder_test_context_gl.cc.
|
friend |
Definition at line 72 of file embedder_test_context_gl.h.