Skip to content

Class mediapipe::GlContext

ClassList > mediapipe > GlContext

Inherits the following classes: std::enable_shared_from_this< GlContext >

Classes

Type Name
class DedicatedThread

Public Types

Type Name
typedef internal::Attachment< GlContext, T > Attachment
typedef internal::AttachmentBase< GlContext > AttachmentBase
typedef absl::StatusOr< std::shared_ptr< GlContext > > StatusOrGlContext
enum SyncTokenTypeForTest

Public Functions

Type Name
std::shared_ptr< GlSyncPoint > CreateSyncToken ()
T & GetCachedAttachment (const Attachment< T > & attachment)
GlVersion GetGlVersion () const
GlContext (const GlContext &) = delete
void GlFinishCalled ()
bool HasGlExtension (absl::string_view extension) const
bool IsCurrent () const
absl::Status Run (GlStatusFunction gl_func, int node_id=-1, Timestamp input_timestamp=Timestamp::Unset())
void Run (T f)
void RunWithoutWaiting (GlVoidFunction gl_func)
void SetProfilingContext (std::shared_ptr< mediapipe::ProfilingContext > profiling_context)
void SetStandardTextureParams (GLenum target, GLint internal_format)
bool SyncTokenIsReady (const std::shared_ptr< GlSyncPoint > & token)
std::shared_ptr< GlSyncPoint > TestOnly_CreateSpecificSyncToken (SyncTokenTypeForTest type)
void WaitForGlFinishCountPast (int64_t count_to_pass)
void WaitSyncToken (const std::shared_ptr< GlSyncPoint > & token)
int64_t gl_finish_count ()
GLint gl_major_version () const
GLint gl_minor_version () const
PlatformGlContext native_context () const
GlContext & operator= (const GlContext &) = delete
~GlContext ()

Public Static Functions

Type Name
StatusOrGlContext Create (std::nullptr_t nullp, bool create_thread)
StatusOrGlContext Create (const GlContext & share_context, bool create_thread)
StatusOrGlContext Create (PlatformGlContext share_context, bool create_thread)
std::shared_ptr< GlSyncPoint > CreateSyncTokenForCurrentExternalContext (const std::shared_ptr< GlContext > & delegate_graph_context)
std::shared_ptr< GlContext > GetCurrent ()
PlatformGlContext GetCurrentNativeContext ()
bool IsAnyContextCurrent ()
bool ParseGlVersion (absl::string_view version_string, GLint * major, GLint * minor)

Public Types Documentation

typedef Attachment

using mediapipe::GlContext::Attachment =  internal::Attachment<GlContext, T>;

typedef AttachmentBase

using mediapipe::GlContext::AttachmentBase =  internal::AttachmentBase<GlContext>;

typedef StatusOrGlContext

using mediapipe::GlContext::StatusOrGlContext =  absl::StatusOr<std::shared_ptr<GlContext> >;

enum SyncTokenTypeForTest

enum mediapipe::GlContext::SyncTokenTypeForTest {
    kGlFinish
};

Public Functions Documentation

function CreateSyncToken

std::shared_ptr< GlSyncPoint > mediapipe::GlContext::CreateSyncToken () 

function GetCachedAttachment

template<class T>
inline T & mediapipe::GlContext::GetCachedAttachment (
    const Attachment< T > & attachment
) 

function GetGlVersion

GlVersion mediapipe::GlContext::GetGlVersion () const

function GlContext [1/2]

mediapipe::GlContext::GlContext (
    const GlContext &
) = delete

function GlFinishCalled

void mediapipe::GlContext::GlFinishCalled () 

function HasGlExtension

bool mediapipe::GlContext::HasGlExtension (
    absl::string_view extension
) const

function IsCurrent

bool mediapipe::GlContext::IsCurrent () const

function Run [1/2]

absl::Status mediapipe::GlContext::Run (
    GlStatusFunction gl_func,
    int node_id=-1,
    Timestamp input_timestamp=Timestamp::Unset()
) 

function Run [2/2]

template<typename T, typename>
inline void mediapipe::GlContext::Run (
    T f
) 

function RunWithoutWaiting

void mediapipe::GlContext::RunWithoutWaiting (
    GlVoidFunction gl_func
) 

function SetProfilingContext

void mediapipe::GlContext::SetProfilingContext (
    std::shared_ptr< mediapipe::ProfilingContext > profiling_context
) 

function SetStandardTextureParams

void mediapipe::GlContext::SetStandardTextureParams (
    GLenum target,
    GLint internal_format
) 

function SyncTokenIsReady

bool mediapipe::GlContext::SyncTokenIsReady (
    const std::shared_ptr< GlSyncPoint > & token
) 

function TestOnly_CreateSpecificSyncToken

std::shared_ptr< GlSyncPoint > mediapipe::GlContext::TestOnly_CreateSpecificSyncToken (
    SyncTokenTypeForTest type
) 

function WaitForGlFinishCountPast

void mediapipe::GlContext::WaitForGlFinishCountPast (
    int64_t count_to_pass
) 

function WaitSyncToken

void mediapipe::GlContext::WaitSyncToken (
    const std::shared_ptr< GlSyncPoint > & token
) 

function gl_finish_count

inline int64_t mediapipe::GlContext::gl_finish_count () 

function gl_major_version

inline GLint mediapipe::GlContext::gl_major_version () const

function gl_minor_version

inline GLint mediapipe::GlContext::gl_minor_version () const

function native_context

inline PlatformGlContext mediapipe::GlContext::native_context () const

function operator=

GlContext & mediapipe::GlContext::operator= (
    const GlContext &
) = delete

function ~GlContext

mediapipe::GlContext::~GlContext () 

Public Static Functions Documentation

function Create [1/3]

static StatusOrGlContext mediapipe::GlContext::Create (
    std::nullptr_t nullp,
    bool create_thread
) 

function Create [2/3]

static StatusOrGlContext mediapipe::GlContext::Create (
    const GlContext & share_context,
    bool create_thread
) 

function Create [3/3]

static StatusOrGlContext mediapipe::GlContext::Create (
    PlatformGlContext share_context,
    bool create_thread
) 

function CreateSyncTokenForCurrentExternalContext

static std::shared_ptr< GlSyncPoint > mediapipe::GlContext::CreateSyncTokenForCurrentExternalContext (
    const std::shared_ptr< GlContext > & delegate_graph_context
) 

function GetCurrent

static std::shared_ptr< GlContext > mediapipe::GlContext::GetCurrent () 

function GetCurrentNativeContext

static PlatformGlContext mediapipe::GlContext::GetCurrentNativeContext () 

function IsAnyContextCurrent

static bool mediapipe::GlContext::IsAnyContextCurrent () 

function ParseGlVersion

static bool mediapipe::GlContext::ParseGlVersion (
    absl::string_view version_string,
    GLint * major,
    GLint * minor
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/gpu/gl_context.h