diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-14 18:40:27 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-14 18:40:27 +0000 |
commit | 398109cc3e56b8122ad21c4d43a74a83be5b42a8 (patch) | |
tree | 9cbb8484edde74896b8d464a2745997f44ea7a9b /gpu/include | |
parent | 261b8e2ca1cf22303ad95267f0bdc6e87e1bbe70 (diff) |
rename SkDevice::eraseColor to clear and make virtual.
Properly flush in GrContext before calling GrGpu::clear()
Review URL: http://codereview.appspot.com/4419043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1130 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/include')
-rw-r--r-- | gpu/include/GrContext.h | 4 | ||||
-rw-r--r-- | gpu/include/GrGpu.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gpu/include/GrContext.h b/gpu/include/GrContext.h index 7b6803c51c..5eda2b7186 100644 --- a/gpu/include/GrContext.h +++ b/gpu/include/GrContext.h @@ -283,9 +283,9 @@ public: // Draws /** - * Erase the entire render target, ignoring any clips + * Clear the entire render target, ignoring any clips */ - void eraseColor(GrColor color); + void clear(GrColor color); /** * Draw everywhere (respecting the clip) with the paint. diff --git a/gpu/include/GrGpu.h b/gpu/include/GrGpu.h index 61dae2cfa6..7dd9959af9 100644 --- a/gpu/include/GrGpu.h +++ b/gpu/include/GrGpu.h @@ -235,11 +235,11 @@ public: GrIndexBuffer* createIndexBuffer(uint32_t size, bool dynamic); /** - * Erase the entire render target, ignoring any clips/scissors. + * Clear the entire render target, ignoring any clips/scissors. * * This is issued to the GPU driver immediately. */ - void eraseColor(GrColor color); + void clear(GrColor color); /** * Are 8 bit paletted textures supported. @@ -498,8 +498,8 @@ protected: virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, bool dynamic) = 0; - // overridden by API-specific derivated class to perform the erase. - virtual void onEraseColor(GrColor color) = 0; + // overridden by API-specific derivated class to perform the clear. + virtual void onClear(GrColor color) = 0; // overridden by API-specific derived class to perform the draw call. virtual void onDrawIndexed(GrPrimitiveType type, @@ -539,7 +539,7 @@ protected: virtual void flushScissor(const GrIRect* rect) = 0; // GrGpu subclass removes the clip from the stencil buffer - virtual void eraseStencilClip(const GrIRect& rect) = 0; + virtual void clearStencilClip(const GrIRect& rect) = 0; private: GrContext* fContext; // not reffed (context refs gpu) |