diff options
author | bsalomon <bsalomon@google.com> | 2015-10-14 12:54:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-14 12:54:52 -0700 |
commit | 10528f1d5838ae1cac015024c4e8731484f888d1 (patch) | |
tree | 798e83363aee8208c90c929d307ca6403928a469 /src/gpu/gl/GrGLTexture.h | |
parent | fd2b067b9e6a8cc93581a61c67bb8ce3c626f60f (diff) |
Store texture target on GrGLTexture. This is in preparation for using texture targets other than 2D.
Review URL: https://codereview.chromium.org/1403123002
Diffstat (limited to 'src/gpu/gl/GrGLTexture.h')
-rw-r--r-- | src/gpu/gl/GrGLTexture.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLTexture.h b/src/gpu/gl/GrGLTexture.h index cffc64adc1..40a68eb9e9 100644 --- a/src/gpu/gl/GrGLTexture.h +++ b/src/gpu/gl/GrGLTexture.h @@ -28,6 +28,7 @@ public: }; struct IDDesc { + GrGLenum fTarget; GrGLuint fTextureID; GrGpuResource::LifeCycle fLifeCycle; }; @@ -52,6 +53,8 @@ public: GrGLuint textureID() const { return fTextureID; } + GrGLenum target() const { return fTarget; } + protected: // The public constructor registers this object with the cache. However, only the most derived // class should register with the cache. This constructor does not do the registration and @@ -69,6 +72,7 @@ protected: private: TexParams fTexParams; GrGpu::ResetTimestamp fTexParamsTimestamp; + GrGLenum fTarget; GrGLuint fTextureID; // We track this separately from GrGpuResource because this may be both a texture and a render |