Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
skgpu::graphite::ContextCtorAccessor Class Reference

#include <ContextPriv.h>

Static Public Member Functions

static std::unique_ptr< ContextMakeContext (sk_sp< SharedContext >, std::unique_ptr< QueueManager >, const ContextOptions &)
 

Detailed Description

Definition at line 96 of file ContextPriv.h.

Member Function Documentation

◆ MakeContext()

std::unique_ptr< Context > skgpu::graphite::ContextCtorAccessor::MakeContext ( sk_sp< SharedContext sharedContext,
std::unique_ptr< QueueManager queueManager,
const ContextOptions options 
)
static

Definition at line 903 of file Context.cpp.

906 {
907 auto context = std::unique_ptr<Context>(new Context(std::move(sharedContext),
908 std::move(queueManager),
909 options));
910 if (context && context->finishInitialization()) {
911 return context;
912 } else {
913 return nullptr;
914 }
915}
const char * options

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