diff options
Diffstat (limited to 'include/gpu/GrRenderTarget.h')
-rw-r--r-- | include/gpu/GrRenderTarget.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/gpu/GrRenderTarget.h b/include/gpu/GrRenderTarget.h index 58a3aa5220..2a6e62ac01 100644 --- a/include/gpu/GrRenderTarget.h +++ b/include/gpu/GrRenderTarget.h @@ -40,7 +40,7 @@ public: // GrSurface overrides /** - * @return the texture associated with the rendertarget, may be NULL. + * @return the texture associated with the render target, may be NULL. */ virtual GrTexture* asTexture() SK_OVERRIDE { return fTexture; } virtual const GrTexture* asTexture() const SK_OVERRIDE { return fTexture; } @@ -75,7 +75,7 @@ public: /** * If this RT is multisampled, this is the buffer it is resolved to. * Otherwise, same as getRenderTargetHandle(). - * (In GL a separate FBO ID is used for the msaa and resolved buffers) + * (In GL a separate FBO ID is used for the MSAA and resolved buffers) * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL) */ virtual GrBackendObject getRenderTargetResolvedHandle() const = 0; @@ -150,15 +150,16 @@ public: protected: GrRenderTarget(GrGpu* gpu, GrTexture* texture, - const GrTextureDesc& desc) - : INHERITED(gpu, desc) + const GrTextureDesc& desc, + Origin origin) + : INHERITED(gpu, desc, origin) , fStencilBuffer(NULL) , fTexture(texture) { fResolveRect.setLargestInverted(); } friend class GrTexture; - // When a texture unrefs an owned rendertarget this func + // When a texture unrefs an owned render target this func // removes the back pointer. This could be called from // texture's destructor but would have to be done in derived // classes. By the time of texture base destructor it has already |