Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 20c633dc67878d09bc9cff88e82cb04a2f72da1c..a315909e1ce56bdad2c5d4a876558e28764be102 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -104,6 +104,7 @@ GrContext::GrContext() { |
fOvalRenderer = NULL; |
fViewMatrix.reset(); |
fMaxTextureSizeOverride = 1 << 20; |
+ fFlushCount = 0; |
} |
bool GrContext::init(GrBackend backend, GrBackendContext backendContext) { |
@@ -1150,6 +1151,7 @@ void GrContext::flush(int flagsBitfield) { |
} else { |
fDrawBuffer->flush(); |
} |
+ ++fFlushCount; |
} |
bool GrContext::writeTexturePixels(GrTexture* texture, |