| Index: include/gpu/GrDrawContext.h
|
| diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
|
| index c4818e5d71df537e141a3c4377f4ac6c9527321a..f56570b10beaf3cd3ca2e2fb8ca6a2a42f3fee92 100644
|
| --- a/include/gpu/GrDrawContext.h
|
| +++ b/include/gpu/GrDrawContext.h
|
| @@ -9,6 +9,7 @@
|
| #define GrDrawContext_DEFINED
|
|
|
| #include "GrColor.h"
|
| +#include "GrPaint.h"
|
| #include "GrRenderTarget.h"
|
| #include "SkRefCnt.h"
|
| #include "SkRegion.h"
|
| @@ -250,20 +251,16 @@ public:
|
| const SkIRect& center,
|
| const SkRect& dst);
|
|
|
| - /**
|
| - * Draws a batch
|
| - *
|
| - * @param paint describes how to color pixels.
|
| - * @param batch the batch to draw
|
| - */
|
| - void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*);
|
| -
|
| bool isStencilBufferMultisampled() const {
|
| return fRenderTarget->isStencilBufferMultisampled();
|
| }
|
| bool isUnifiedMultisampled() const { return fRenderTarget->isUnifiedMultisampled(); }
|
| bool hasMixedSamples() const { return fRenderTarget->hasMixedSamples(); }
|
|
|
| + bool mustUseHWAA(const GrPaint& paint) const {
|
| + return paint.isAntiAlias() && fRenderTarget->isUnifiedMultisampled();
|
| + }
|
| +
|
| const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); }
|
| int width() const { return fRenderTarget->width(); }
|
| int height() const { return fRenderTarget->height(); }
|
| @@ -326,7 +323,8 @@ private:
|
|
|
| GrDrawBatch* getFillRectBatch(const GrPaint& paint,
|
| const SkMatrix& viewMatrix,
|
| - const SkRect& rect);
|
| + const SkRect& rect,
|
| + bool* useHWAA);
|
|
|
| void internalDrawPath(const GrClip& clip,
|
| const GrPaint& paint,
|
|
|