Skia
2DGraphicsLibrary
|
Used to represent a texture that is required by a GrProcessor. More...
#include <GrTextureAccess.h>
Public Member Functions | |
GrTextureAccess () | |
Must be initialized before adding to a GrProcessor's texture access list. | |
GrTextureAccess (GrTexture *, const GrTextureParams &) | |
GrTextureAccess (GrTexture *, GrTextureParams::FilterMode=GrTextureParams::kNone_FilterMode, SkShader::TileMode tileXAndY=SkShader::kClamp_TileMode, GrShaderFlags visibility=kFragment_GrShaderFlag) | |
void | reset (GrTexture *, const GrTextureParams &, GrShaderFlags visibility=kFragment_GrShaderFlag) |
void | reset (GrTexture *, GrTextureParams::FilterMode=GrTextureParams::kNone_FilterMode, SkShader::TileMode tileXAndY=SkShader::kClamp_TileMode, GrShaderFlags visibility=kFragment_GrShaderFlag) |
bool | operator== (const GrTextureAccess &that) const |
bool | operator!= (const GrTextureAccess &other) const |
GrTexture * | getTexture () const |
GrShaderFlags | getVisibility () const |
const GrGpuResourceRef * | getProgramTexture () const |
For internal use by GrProcessor. | |
const GrTextureParams & | getParams () const |
Private Types | |
typedef GrTGpuResourceRef < GrTexture > | ProgramTexture |
typedef SkNoncopyable | INHERITED |
Private Attributes | |
ProgramTexture | fTexture |
GrTextureParams | fParams |
GrShaderFlags | fVisibility |
Used to represent a texture that is required by a GrProcessor.
It holds a GrTexture along with an associated GrTextureParams