#include <test_metal_context.h>
Classes | |
| struct | TextureInfo |
Public Member Functions | |
| TestMetalContext () | |
| ~TestMetalContext () | |
| id< MTLDevice > | GetMetalDevice () const |
| id< MTLCommandQueue > | GetMetalCommandQueue () const |
| sk_sp< GrDirectContext > | GetSkiaContext () const |
| TextureInfo | CreateMetalTexture (const DlISize &size) |
| Returns texture_id = -1 when texture creation fails. | |
| bool | Present (int64_t texture_id) |
| TextureInfo | GetTextureInfo (int64_t texture_id) |
Definition at line 22 of file test_metal_context.h.
| flutter::testing::TestMetalContext::TestMetalContext | ( | ) |
Definition at line 19 of file test_metal_context.mm.
| flutter::testing::TestMetalContext::~TestMetalContext | ( | ) |
Definition at line 48 of file test_metal_context.mm.
| TestMetalContext::TextureInfo flutter::testing::TestMetalContext::CreateMetalTexture | ( | const DlISize & | size | ) |
Returns texture_id = -1 when texture creation fails.
Definition at line 65 of file test_metal_context.mm.
References FML_CHECK, height, flutter::size, texture, texture_id, and width.
Referenced by flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| id< MTLCommandQueue > flutter::testing::TestMetalContext::GetMetalCommandQueue | ( | ) | const |
Definition at line 57 of file test_metal_context.mm.
| id< MTLDevice > flutter::testing::TestMetalContext::GetMetalDevice | ( | ) | const |
Definition at line 53 of file test_metal_context.mm.
| sk_sp< GrDirectContext > flutter::testing::TestMetalContext::GetSkiaContext | ( | ) | const |
Definition at line 61 of file test_metal_context.mm.
Referenced by flutter::testing::TEST_F().
| TestMetalContext::TextureInfo flutter::testing::TestMetalContext::GetTextureInfo | ( | int64_t | texture_id | ) |
Definition at line 115 of file test_metal_context.mm.
References FML_CHECK, and texture_id.
| bool flutter::testing::TestMetalContext::Present | ( | int64_t | texture_id | ) |
Definition at line 106 of file test_metal_context.mm.
References texture_id.