aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/src/GrContext.cpp')
-rw-r--r--gpu/src/GrContext.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp
index 8017f73eba..f68564a2ba 100644
--- a/gpu/src/GrContext.cpp
+++ b/gpu/src/GrContext.cpp
@@ -325,8 +325,11 @@ void GrContext::setClip(const GrIRect& rect) {
////////////////////////////////////////////////////////////////////////////////
-void GrContext::eraseColor(GrColor color) {
- fGpu->eraseColor(color);
+void GrContext::clear(GrColor color) {
+ // gpu flush call is immediate, must flush.
+ // (could in theory skip draws to current render target.)
+ this->flush();
+ fGpu->clear(color);
}
void GrContext::drawPaint(const GrPaint& paint) {