From 55e4a2005eae1e4f677ec145c577c615a63cf05d Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 11 Jan 2013 13:54:21 +0000 Subject: Remove non-destructive playback from GrIODB. Review URL: https://codereview.appspot.com/7057070 git-svn-id: http://skia.googlecode.com/svn/trunk@7128 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrInOrderDrawBuffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gpu/GrInOrderDrawBuffer.cpp') diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index d65a71e41d..e327413226 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -553,7 +553,7 @@ void GrInOrderDrawBuffer::reset() { this->resetDrawTracking(); } -bool GrInOrderDrawBuffer::playback(GrDrawTarget* target) { +bool GrInOrderDrawBuffer::flushTo(GrDrawTarget* target) { GrAssert(kReserved_GeometrySrcType != this->getGeomSrc().fVertexSrc); GrAssert(kReserved_GeometrySrcType != this->getGeomSrc().fIndexSrc); @@ -637,6 +637,7 @@ bool GrInOrderDrawBuffer::playback(GrDrawTarget* target) { target->setDrawState(prevDrawState); prevDrawState->unref(); + this->reset(); return true; } -- cgit v1.2.3