diff options
author | 2011-04-14 18:40:27 +0000 | |
---|---|---|
committer | 2011-04-14 18:40:27 +0000 | |
commit | 398109cc3e56b8122ad21c4d43a74a83be5b42a8 (patch) | |
tree | 9cbb8484edde74896b8d464a2745997f44ea7a9b /gpu/src/GrGpu.cpp | |
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/src/GrGpu.cpp')
-rw-r--r-- | gpu/src/GrGpu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/src/GrGpu.cpp b/gpu/src/GrGpu.cpp index 43fe648fbf..c8e2bc77ab 100644 --- a/gpu/src/GrGpu.cpp +++ b/gpu/src/GrGpu.cpp @@ -173,9 +173,9 @@ GrIndexBuffer* GrGpu::createIndexBuffer(uint32_t size, bool dynamic) { return this->onCreateIndexBuffer(size, dynamic); } -void GrGpu::eraseColor(GrColor color) { +void GrGpu::clear(GrColor color) { this->handleDirtyContext(); - this->onEraseColor(color); + this->onClear(color); } void GrGpu::forceRenderTargetFlush() { @@ -423,7 +423,7 @@ bool GrGpu::setupClipAndFlushState(GrPrimitiveType type) { AutoInternalDrawGeomRestore aidgr(this); this->setViewMatrix(GrMatrix::I()); - this->eraseStencilClip(clipRect); + this->clearStencilClip(clipRect); this->flushScissor(NULL); #if !VISUALIZE_COMPLEX_CLIP this->enableState(kNoColorWrites_StateBit); |