Flutter Impeller
impeller::PlaygroundImplGLES::ShareableContext Struct Referencefinal

Public Member Functions

 ShareableContext (UniqueHandle window, std::shared_ptr< ReactorWorker > worker, std::shared_ptr< ContextGLES > context, PlaygroundSwitches switches)
 
 ~ShareableContext ()
 

Public Attributes

UniqueHandle window = {nullptr, &DestroyWindowHandle}
 
std::shared_ptr< ReactorWorker > worker
 
std::shared_ptr< ContextGLES > context
 
PlaygroundSwitches switches
 

Detailed Description

Definition at line 80 of file playground_impl_gles.cc.

Constructor & Destructor Documentation

◆ ShareableContext()

impeller::PlaygroundImplGLES::ShareableContext::ShareableContext ( UniqueHandle  window,
std::shared_ptr< ReactorWorker >  worker,
std::shared_ptr< ContextGLES >  context,
PlaygroundSwitches  switches 
)
inline

Definition at line 82 of file playground_impl_gles.cc.

◆ ~ShareableContext()

impeller::PlaygroundImplGLES::ShareableContext::~ShareableContext ( )
inline

Definition at line 91 of file playground_impl_gles.cc.

91  {
92  if (window) {
93  ::glfwMakeContextCurrent(window.get());
94  }
95  context.reset();
96  worker.reset();
97  window.reset();
98  }

References context, window, and worker.

Member Data Documentation

◆ context

std::shared_ptr<ContextGLES> impeller::PlaygroundImplGLES::ShareableContext::context

Definition at line 108 of file playground_impl_gles.cc.

Referenced by ~ShareableContext().

◆ switches

PlaygroundSwitches impeller::PlaygroundImplGLES::ShareableContext::switches

Definition at line 109 of file playground_impl_gles.cc.

◆ window

UniqueHandle impeller::PlaygroundImplGLES::ShareableContext::window = {nullptr, &DestroyWindowHandle}

Definition at line 105 of file playground_impl_gles.cc.

Referenced by ~ShareableContext().

◆ worker

std::shared_ptr<ReactorWorker> impeller::PlaygroundImplGLES::ShareableContext::worker

Definition at line 107 of file playground_impl_gles.cc.

Referenced by ~ShareableContext().


The documentation for this struct was generated from the following file: