Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::PlaygroundImplGLES::ShareableContext Struct Referencefinal

Public Member Functions

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

Public Attributes

UniqueHandle window = {nullptr, &DestroyWindowHandle}
 
std::shared_ptr< ReactorWorkerworker
 
std::shared_ptr< ContextGLEScontext
 
const PlaygroundSwitches switches
 

Detailed Description

Definition at line 64 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,
const PlaygroundSwitches switches 
)
inline

Definition at line 66 of file playground_impl_gles.cc.

◆ ~ShareableContext()

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

Definition at line 75 of file playground_impl_gles.cc.

75 {
76 if (window) {
77 ::glfwMakeContextCurrent(window.get());
78 }
79 context.reset();
80 worker.reset();
81 window.reset();
82 }

References context, window, and worker.

Member Data Documentation

◆ context

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

Definition at line 92 of file playground_impl_gles.cc.

Referenced by ~ShareableContext().

◆ switches

const PlaygroundSwitches impeller::PlaygroundImplGLES::ShareableContext::switches

Definition at line 93 of file playground_impl_gles.cc.

◆ window

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

Definition at line 89 of file playground_impl_gles.cc.

89{nullptr, &DestroyWindowHandle};

Referenced by ~ShareableContext().

◆ worker

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

Definition at line 91 of file playground_impl_gles.cc.

Referenced by ~ShareableContext().


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