Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index 3ec95966d8aa6c454a826c7936e7cf126ffb73e4..9e0d21393e84c6cc504a6a8626ecee3c7b30255a 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -27,7 +27,8 @@ GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrGpu* gpu, |
, fClipProxyState(kUnknown_ClipProxyState) |
, fVertexPool(*vertexPool) |
, fIndexPool(*indexPool) |
- , fFlushing(false) { |
+ , fFlushing(false) |
+ , fDrawID(0) { |
fDstGpu->ref(); |
fCaps.reset(SkRef(fDstGpu->caps())); |
@@ -536,6 +537,7 @@ void GrInOrderDrawBuffer::flush() { |
fDstGpu->setDrawState(prevDrawState); |
prevDrawState->unref(); |
this->reset(); |
+ ++fDrawID; |
} |
bool GrInOrderDrawBuffer::onCopySurface(GrSurface* dst, |