aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLTexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLTexture.h')
-rw-r--r--src/gpu/gl/GrGLTexture.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/gl/GrGLTexture.h b/src/gpu/gl/GrGLTexture.h
index 10b8e26e78..298f1faf11 100644
--- a/src/gpu/gl/GrGLTexture.h
+++ b/src/gpu/gl/GrGLTexture.h
@@ -58,9 +58,9 @@ public:
fTexParamsTimestamp = timestamp;
}
- GrGLuint textureID() const { return fInfo.fID; }
+ GrGLuint textureID() const { return fID; }
- GrGLenum target() const { return fInfo.fTarget; }
+ GrGLenum target() const;
bool hasBaseLevelBeenBoundToFBO() const { return fBaseLevelHasBeenBoundToFBO; }
void baseLevelWasBoundToFBO() { fBaseLevelHasBeenBoundToFBO = true; }
@@ -96,9 +96,8 @@ private:
TexParams fTexParams;
GrGpu::ResetTimestamp fTexParamsTimestamp;
- // Holds the texture target and ID. A pointer to this may be shared to external clients for
- // direct interaction with the GL object.
- GrGLTextureInfo fInfo;
+ GrGLuint fID;
+ GrGLenum fFormat;
GrBackendObjectOwnership fTextureIDOwnership;
bool fBaseLevelHasBeenBoundToFBO = false;