#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)> |
Definition at line 16 of file embedder_test_context_gl.h.
| using flutter::testing::EmbedderTestContextGL::GLGetFBOCallback = std::function<void(FlutterFrameInfo frame_info)> |
Definition at line 18 of file embedder_test_context_gl.h.
| using flutter::testing::EmbedderTestContextGL::GLPopulateExistingDamageCallback = std::function<void(intptr_t id, FlutterDamage* existing_damage)> |
Definition at line 19 of file embedder_test_context_gl.h.
| using flutter::testing::EmbedderTestContextGL::GLPresentCallback = std::function<void(FlutterPresentInfo present_info)> |
Definition at line 21 of file embedder_test_context_gl.h.
|
explicit |
Definition at line 21 of file embedder_test_context_gl.cc.
References flutter::testing::EmbedderTestContext::GetRootSurfaceTransformation(), GLGetProcAddress(), kOpenGL, flutter::name, FlutterRendererConfig::open_gl, flutter::testing::EmbedderTestContext::renderer_config_, FlutterOpenGLRendererConfig::struct_size, and FlutterRendererConfig::type.
|
override |
Definition at line 62 of file embedder_test_context_gl.cc.
References SetGLGetFBOCallback().
|
overridevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 189 of file embedder_test_context_gl.cc.
References flutter::testing::kOpenGLContext.
|
overridevirtual |
Implements flutter::testing::EmbedderTestContext.
Definition at line 185 of file embedder_test_context_gl.cc.
| uint32_t flutter::testing::EmbedderTestContextGL::GetWindowFBOId | ( | ) | const |
Definition at line 193 of file embedder_test_context_gl.cc.
References FML_CHECK.
| void * flutter::testing::EmbedderTestContextGL::GLGetProcAddress | ( | const char * | name | ) |
Definition at line 180 of file embedder_test_context_gl.cc.
References FML_CHECK, and flutter::name.
Referenced by EmbedderTestContextGL().
| void flutter::testing::EmbedderTestContextGL::GLPopulateExistingDamage | ( | const intptr_t | id, |
| FlutterDamage * | existing_damage | ||
| ) |
Definition at line 159 of file embedder_test_context_gl.cc.
| void flutter::testing::EmbedderTestContextGL::SetGLGetFBOCallback | ( | const 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 125 of file embedder_test_context_gl.cc.
References callback.
Referenced by ~EmbedderTestContextGL().
| void flutter::testing::EmbedderTestContextGL::SetGLPopulateExistingDamageCallback | ( | GLPopulateExistingDamageCallback | callback | ) |
Definition at line 131 of file embedder_test_context_gl.cc.
References callback.
Referenced by flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| 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 137 of file embedder_test_context_gl.cc.
References callback.
| void flutter::testing::EmbedderTestContextGL::SetOpenGLFBOCallBack | ( | ) |
Definition at line 66 of file embedder_test_context_gl.cc.
References FlutterOpenGLRendererConfig::fbo_callback, FML_CHECK, FlutterUIntSize::height, kOpenGL, FlutterRendererConfig::open_gl, flutter::testing::EmbedderTestContext::renderer_config_, FlutterFrameInfo::size, FlutterFrameInfo::struct_size, FlutterRendererConfig::type, and FlutterUIntSize::width.
| void flutter::testing::EmbedderTestContextGL::SetOpenGLPresentCallBack | ( | ) |
Definition at line 82 of file embedder_test_context_gl.cc.
References FlutterPresentInfo::fbo_id, FML_CHECK, kOpenGL, FlutterRendererConfig::open_gl, FlutterOpenGLRendererConfig::present, flutter::testing::EmbedderTestContext::renderer_config_, and FlutterRendererConfig::type.