Flutter Engine
The Flutter Engine
Classes | Public Types | Public Member Functions | List of all members
GrGLTextureParameters Class Reference

#include <GrGLTypesPriv.h>

Inheritance diagram for GrGLTextureParameters:
SkNVRefCnt< GrGLTextureParameters >

Classes

struct  NonsamplerState
 
struct  SamplerOverriddenState
 

Public Types

using ResetTimestamp = uint64_t
 

Public Member Functions

 GrGLTextureParameters ()=default
 
void invalidate ()
 
ResetTimestamp resetTimestamp () const
 
const SamplerOverriddenStatesamplerOverriddenState () const
 
const NonsamplerStatenonsamplerState () const
 
void set (const SamplerOverriddenState *samplerState, const NonsamplerState &nonsamplerState, ResetTimestamp currTimestamp)
 
- Public Member Functions inherited from SkNVRefCnt< GrGLTextureParameters >
 SkNVRefCnt ()
 
 ~SkNVRefCnt ()
 
bool unique () const
 
void ref () const
 
void unref () const
 
void deref () const
 
bool refCntGreaterThan (int32_t threadIsolatedTestCnt) const
 

Detailed Description

Definition at line 16 of file GrGLTypesPriv.h.

Member Typedef Documentation

◆ ResetTimestamp

Definition at line 24 of file GrGLTypesPriv.h.

Constructor & Destructor Documentation

◆ GrGLTextureParameters()

GrGLTextureParameters::GrGLTextureParameters ( )
default

Member Function Documentation

◆ invalidate()

void GrGLTextureParameters::invalidate ( )

Definition at line 45 of file GrGLTypesPriv.cpp.

45 {
46 fSamplerOverriddenState.invalidate();
47 fNonsamplerState.invalidate();
48}

◆ nonsamplerState()

const NonsamplerState & GrGLTextureParameters::nonsamplerState ( ) const
inline

Definition at line 61 of file GrGLTypesPriv.h.

61{ return fNonsamplerState; }

◆ resetTimestamp()

ResetTimestamp GrGLTextureParameters::resetTimestamp ( ) const
inline

Definition at line 59 of file GrGLTypesPriv.h.

59{ return fResetTimestamp; }

◆ samplerOverriddenState()

const SamplerOverriddenState & GrGLTextureParameters::samplerOverriddenState ( ) const
inline

Definition at line 60 of file GrGLTypesPriv.h.

60{ return fSamplerOverriddenState; }

◆ set()

void GrGLTextureParameters::set ( const SamplerOverriddenState samplerState,
const NonsamplerState nonsamplerState,
ResetTimestamp  currTimestamp 
)

Definition at line 50 of file GrGLTypesPriv.cpp.

52 {
53 if (samplerState) {
54 fSamplerOverriddenState = *samplerState;
55 }
56 fNonsamplerState = nonsamplerState;
57 fResetTimestamp = currTimestamp;
58}
const NonsamplerState & nonsamplerState() const
Definition: GrGLTypesPriv.h:61

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