#include <test_gl_surface.h>
Public Member Functions | |
| TestGLOnscreenOnlySurface (DlISize surface_size) | |
| TestGLOnscreenOnlySurface (std::shared_ptr< TestEGLContext > context, DlISize size) | |
| ~TestGLOnscreenOnlySurface () | |
| const DlISize & | GetSurfaceSize () const |
| bool | MakeCurrent () |
| bool | ClearCurrent () |
| bool | Present () |
| uint32_t | GetFramebuffer (uint32_t width, uint32_t height) const |
| void * | GetProcAddress (const char *name) const |
| sk_sp< SkSurface > | GetOnscreenSurface () |
| sk_sp< GrDirectContext > | GetGrContext () |
| sk_sp< GrDirectContext > | CreateGrContext () |
| sk_sp< SkImage > | GetRasterSurfaceSnapshot () |
| uint32_t | GetWindowFBOId () const |
Protected Types | |
| using | EGLSurface = void * |
Protected Member Functions | |
| FML_DISALLOW_COPY_AND_ASSIGN (TestGLOnscreenOnlySurface) | |
Protected Attributes | |
| const DlISize | surface_size_ |
| std::shared_ptr< TestEGLContext > | egl_context_ |
| EGLSurface | onscreen_surface_ |
| sk_sp< GrDirectContext > | skia_context_ |
Definition at line 18 of file test_gl_surface.h.
|
protected |
Definition at line 50 of file test_gl_surface.h.
|
explicit |
|
explicit |
Definition at line 27 of file test_gl_surface.cc.
References egl_context_, FML_CHECK, flutter::testing::GetEGLError(), onscreen_surface_, and flutter::size.
| flutter::testing::TestGLOnscreenOnlySurface::~TestGLOnscreenOnlySurface | ( | ) |
Definition at line 45 of file test_gl_surface.cc.
References egl_context_, FML_CHECK, flutter::testing::GetEGLError(), onscreen_surface_, and skia_context_.
| bool flutter::testing::TestGLOnscreenOnlySurface::ClearCurrent | ( | ) |
Definition at line 68 of file test_gl_surface.cc.
References egl_context_, FML_LOG, and flutter::testing::GetEGLError().
| sk_sp< GrDirectContext > flutter::testing::TestGLOnscreenOnlySurface::CreateGrContext | ( | ) |
Definition at line 113 of file test_gl_surface.cc.
References GetProcAddress(), MakeCurrent(), flutter::name, and skia_context_.
Referenced by GetGrContext().
|
protected |
| uint32_t flutter::testing::TestGLOnscreenOnlySurface::GetFramebuffer | ( | uint32_t | width, |
| uint32_t | height | ||
| ) | const |
Definition at line 89 of file test_gl_surface.cc.
References GetWindowFBOId().
Referenced by GetOnscreenSurface().
| sk_sp< GrDirectContext > flutter::testing::TestGLOnscreenOnlySurface::GetGrContext | ( | ) |
Definition at line 105 of file test_gl_surface.cc.
References CreateGrContext(), and skia_context_.
Referenced by GetOnscreenSurface().
| sk_sp< SkSurface > flutter::testing::TestGLOnscreenOnlySurface::GetOnscreenSurface | ( | ) |
Definition at line 150 of file test_gl_surface.cc.
References FML_CHECK, FML_LOG, GetFramebuffer(), GetGrContext(), impeller::TSize< T >::height, height, surface, surface_size_, impeller::TSize< T >::width, and width.
Referenced by GetRasterSurfaceSnapshot().
| void * flutter::testing::TestGLOnscreenOnlySurface::GetProcAddress | ( | const char * | name | ) | const |
Definition at line 94 of file test_gl_surface.cc.
References FML_LOG, and flutter::name.
Referenced by CreateGrContext().
| sk_sp< SkImage > flutter::testing::TestGLOnscreenOnlySurface::GetRasterSurfaceSnapshot | ( | ) |
Definition at line 193 of file test_gl_surface.cc.
References FML_LOG, GetOnscreenSurface(), and surface.
| const DlISize & flutter::testing::TestGLOnscreenOnlySurface::GetSurfaceSize | ( | ) | const |
Definition at line 52 of file test_gl_surface.cc.
References surface_size_.
| uint32_t flutter::testing::TestGLOnscreenOnlySurface::GetWindowFBOId | ( | ) | const |
Definition at line 221 of file test_gl_surface.cc.
Referenced by GetFramebuffer().
| bool flutter::testing::TestGLOnscreenOnlySurface::MakeCurrent | ( | ) |
Definition at line 56 of file test_gl_surface.cc.
References egl_context_, FML_LOG, flutter::testing::GetEGLError(), and onscreen_surface_.
Referenced by CreateGrContext(), and flutter::testing::ShellTestPlatformViewGL::ShellTestPlatformViewGL().
| bool flutter::testing::TestGLOnscreenOnlySurface::Present | ( | ) |
Definition at line 79 of file test_gl_surface.cc.
References egl_context_, FML_LOG, flutter::testing::GetEGLError(), and onscreen_surface_.
|
protected |
Definition at line 53 of file test_gl_surface.h.
Referenced by ClearCurrent(), MakeCurrent(), flutter::testing::TestGLSurface::MakeResourceCurrent(), Present(), TestGLOnscreenOnlySurface(), flutter::testing::TestGLSurface::TestGLSurface(), ~TestGLOnscreenOnlySurface(), and flutter::testing::TestGLSurface::~TestGLSurface().
|
protected |
Definition at line 54 of file test_gl_surface.h.
Referenced by MakeCurrent(), Present(), TestGLOnscreenOnlySurface(), and ~TestGLOnscreenOnlySurface().
|
protected |
Definition at line 56 of file test_gl_surface.h.
Referenced by CreateGrContext(), GetGrContext(), and ~TestGLOnscreenOnlySurface().
|
protected |
Definition at line 52 of file test_gl_surface.h.
Referenced by GetOnscreenSurface(), and GetSurfaceSize().