| Index: include/gpu/GrContext.h
|
| diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
|
| index 5b25fe4697c80e22176f6daba5220ddd512bd0af..973185c320ea15d72f0abeb13591d74c86108446 100644
|
| --- a/include/gpu/GrContext.h
|
| +++ b/include/gpu/GrContext.h
|
| @@ -877,6 +877,9 @@ private:
|
| GrIndexBufferAllocPool* fDrawBufferIBAllocPool;
|
| GrInOrderDrawBuffer* fDrawBuffer;
|
|
|
| + // Set by OverbudgetCB() to request that GrContext flush before exiting a draw.
|
| + bool fFlushToReduceCacheSize;
|
| +
|
| GrAARectRenderer* fAARectRenderer;
|
| GrOvalRenderer* fOvalRenderer;
|
|
|
| @@ -899,9 +902,10 @@ private:
|
| void setupDrawBuffer();
|
|
|
| class AutoRestoreEffects;
|
| + 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*, BufferedDraw, AutoRestoreEffects*);
|
| + GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects*, AutoCheckFlush*);
|
|
|
| void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path,
|
| const SkStrokeRec& stroke);
|
|
|