Flutter Engine
flutter::TestMetalSurfaceImpl Class Reference

#include <test_metal_surface_impl.h>

Inheritance diagram for flutter::TestMetalSurfaceImpl:
flutter::TestMetalSurface

Public Member Functions

 TestMetalSurfaceImpl (const TestMetalContext &test_metal_context, const SkISize &surface_size)
 
 TestMetalSurfaceImpl (const TestMetalContext &test_metal_context, int64_t texture_id, const SkISize &surface_size)
 
 ~TestMetalSurfaceImpl () override
 
- Public Member Functions inherited from flutter::TestMetalSurface
virtual ~TestMetalSurface ()
 

Additional Inherited Members

- Static Public Member Functions inherited from flutter::TestMetalSurface
static bool PlatformSupportsMetal ()
 
static std::unique_ptr< TestMetalSurfaceCreate (const TestMetalContext &test_metal_context, SkISize surface_size=SkISize::MakeEmpty())
 
static std::unique_ptr< TestMetalSurfaceCreate (const TestMetalContext &test_metal_context, int64_t texture_id, SkISize surface_size=SkISize::MakeEmpty())
 
- Protected Member Functions inherited from flutter::TestMetalSurface
 TestMetalSurface ()
 

Detailed Description

Definition at line 14 of file test_metal_surface_impl.h.

Constructor & Destructor Documentation

◆ TestMetalSurfaceImpl() [1/2]

flutter::TestMetalSurfaceImpl::TestMetalSurfaceImpl ( const TestMetalContext test_metal_context,
const SkISize &  surface_size 
)

Definition at line 65 of file test_metal_surface_impl.mm.

References FML_LOG, flutter::TestMetalContext::GetSkiaContext(), and ~TestMetalSurfaceImpl().

67  : test_metal_context_(test_metal_context) {
68  if (surface_size.isEmpty()) {
69  FML_LOG(ERROR) << "Size of test Metal surface was empty.";
70  return;
71  }
72  TestMetalContext::TextureInfo texture_info =
73  const_cast<TestMetalContext&>(test_metal_context_).CreateMetalTexture(surface_size);
74  Init(texture_info, surface_size);
75 }
#define FML_LOG(severity)
Definition: logging.h:65

◆ TestMetalSurfaceImpl() [2/2]

flutter::TestMetalSurfaceImpl::TestMetalSurfaceImpl ( const TestMetalContext test_metal_context,
int64_t  texture_id,
const SkISize &  surface_size 
)

Definition at line 56 of file test_metal_surface_impl.mm.

59  : test_metal_context_(test_metal_context) {
60  TestMetalContext::TextureInfo texture_info =
61  const_cast<TestMetalContext&>(test_metal_context_).GetTextureInfo(texture_id);
62  Init(texture_info, surface_size);
63 }
int64_t texture_id

◆ ~TestMetalSurfaceImpl()

flutter::TestMetalSurfaceImpl::~TestMetalSurfaceImpl ( )
overridedefault

Referenced by TestMetalSurfaceImpl().


The documentation for this class was generated from the following files: