Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GrGLTextureInfo Struct Reference

#include <GrGLTypes.h>

Public Member Functions

bool operator== (const GrGLTextureInfo &that) const
 
bool isProtected () const
 

Public Attributes

GrGLenum fTarget
 
GrGLuint fID
 
GrGLenum fFormat = 0
 
skgpu::Protected fProtected = skgpu::Protected::kNo
 

Detailed Description

Types for interacting with GL resources created externally to Skia. GrBackendObjects for GL textures are really const GrGLTexture*. The fFormat here should be a sized, internal format for the texture. We will try to use the sized format if the GL Context supports it, otherwise we will internally fall back to using the base internal formats.

Definition at line 180 of file GrGLTypes.h.

Member Function Documentation

◆ isProtected()

bool GrGLTextureInfo::isProtected ( ) const
inline

Definition at line 193 of file GrGLTypes.h.

193{ return fProtected == skgpu::Protected::kYes; }
skgpu::Protected fProtected
Definition GrGLTypes.h:184

◆ operator==()

bool GrGLTextureInfo::operator== ( const GrGLTextureInfo that) const
inline

Definition at line 186 of file GrGLTypes.h.

186 {
187 return fTarget == that.fTarget &&
188 fID == that.fID &&
189 fFormat == that.fFormat &&
190 fProtected == that.fProtected;
191 }
GrGLenum fFormat
Definition GrGLTypes.h:183
GrGLenum fTarget
Definition GrGLTypes.h:181

Member Data Documentation

◆ fFormat

GrGLenum GrGLTextureInfo::fFormat = 0

Definition at line 183 of file GrGLTypes.h.

◆ fID

GrGLuint GrGLTextureInfo::fID

Definition at line 182 of file GrGLTypes.h.

◆ fProtected

skgpu::Protected GrGLTextureInfo::fProtected = skgpu::Protected::kNo

Definition at line 184 of file GrGLTypes.h.

◆ fTarget

GrGLenum GrGLTextureInfo::fTarget

Definition at line 181 of file GrGLTypes.h.


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