diff options
author | 2014-11-03 08:47:23 -0800 | |
---|---|---|
committer | 2014-11-03 08:47:23 -0800 | |
commit | 37dd331b20a92ce79cc26556e065dec98a66cb0b (patch) | |
tree | cac1c6927c1f8f9860890e37b9d08cca01de251b /include/gpu/GrSurface.h | |
parent | 89a9ecef9ead1f6093e796173b28b82dca4adcbd (diff) |
Add class GrGLTextureRenderTarget for GL texture/rendertarget objects
BUG=skia:2889
Review URL: https://codereview.chromium.org/695813003
Diffstat (limited to 'include/gpu/GrSurface.h')
-rw-r--r-- | include/gpu/GrSurface.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 9a76d3ab4f..9d891493b0 100644 --- a/include/gpu/GrSurface.h +++ b/include/gpu/GrSurface.h @@ -24,15 +24,11 @@ public: /** * Retrieves the width of the surface. - * - * @return the width in texels */ int width() const { return fDesc.fWidth; } /** * Retrieves the height of the surface. - * - * @return the height in texels */ int height() const { return fDesc.fHeight; } @@ -63,14 +59,14 @@ public: /** * @return the texture associated with the surface, may be NULL. */ - virtual GrTexture* asTexture() = 0; - virtual const GrTexture* asTexture() const = 0; + virtual GrTexture* asTexture() { return NULL; } + virtual const GrTexture* asTexture() const { return NULL; } /** * @return the render target underlying this surface, may be NULL. */ - virtual GrRenderTarget* asRenderTarget() = 0; - virtual const GrRenderTarget* asRenderTarget() const = 0; + virtual GrRenderTarget* asRenderTarget() { return NULL; } + virtual const GrRenderTarget* asRenderTarget() const { return NULL; } /** * Reads a rectangle of pixels from the surface. |