Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 001ba880270f77b1dacbd88fd2e622afe0d336c3..08a04fbd93cb6fb631fd9293ab13e49e39581f5c 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -941,6 +941,13 @@ |
#endif |
private: |
+ // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer. |
+ enum BufferedDraw { |
+ kYes_BufferedDraw, |
+ kNo_BufferedDraw, |
+ }; |
+ BufferedDraw fLastDrawWasBuffered; |
+ |
GrGpu* fGpu; |
SkMatrix fViewMatrix; |
SkAutoTUnref<GrRenderTarget> fRenderTarget; |
@@ -989,7 +996,7 @@ |
class AutoCheckFlush; |
/// Sets the paint and returns the target to draw into. The paint can be NULL in which case the |
/// draw state is left unmodified. |
- GrDrawTarget* prepareToDraw(const GrPaint*, AutoRestoreEffects*, AutoCheckFlush*); |
+ GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects*, AutoCheckFlush*); |
void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, |
const GrStrokeInfo& stroke); |