aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGpuGL.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-29 12:41:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-29 12:41:57 -0700
commitb15b4c1ce006319acf764a25ee4a6b73283654f8 (patch)
tree5c83c5405698cf097cf70714dc112e4423cad53c /src/gpu/gl/GrGpuGL.h
parent9c30ea4c8654cc251ce243df4df97e30dab23ebb (diff)
Separate out GrSurfaceConfig's fields from other structs used to create GrGL* subclasses of GrSurface.
Diffstat (limited to 'src/gpu/gl/GrGpuGL.h')
-rw-r--r--src/gpu/gl/GrGpuGL.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h
index 568ce96f31..1a03c130c6 100644
--- a/src/gpu/gl/GrGpuGL.h
+++ b/src/gpu/gl/GrGpuGL.h
@@ -258,7 +258,7 @@ private:
GrGLenum* externalFormat,
GrGLenum* externalType);
// helper for onCreateTexture and writeTexturePixels
- bool uploadTexData(const GrGLTexture::Desc& desc,
+ bool uploadTexData(const GrSurfaceDesc& desc,
bool isNewTexture,
int left, int top, int width, int height,
GrPixelConfig dataConfig,
@@ -271,15 +271,13 @@ private:
// whenever a new texture needs to be created. Otherwise, we assume that
// the texture is already in GPU memory and that it's going to be updated
// with new data.
- bool uploadCompressedTexData(const GrGLTexture::Desc& desc,
+ bool uploadCompressedTexData(const GrSurfaceDesc& desc,
const void* data,
bool isNewTexture = true,
int left = 0, int top = 0,
int width = -1, int height = -1);
- bool createRenderTargetObjects(int width, int height,
- GrGLuint texID,
- GrGLRenderTarget::Desc* desc);
+ bool createRenderTargetObjects(const GrSurfaceDesc&, GrGLuint texID, GrGLRenderTarget::IDDesc*);
GrGLuint bindSurfaceAsFBO(GrSurface* surface, GrGLenum fboTarget, GrGLIRect* viewport);