| Index: src/core/SkRecordDraw.h
|
| diff --git a/src/core/SkRecordDraw.h b/src/core/SkRecordDraw.h
|
| index e95123bbe6ebcd0d2994cfc7468329062d1d3d76..0a779581036c53040e66201998c4afb8545e8bb7 100644
|
| --- a/src/core/SkRecordDraw.h
|
| +++ b/src/core/SkRecordDraw.h
|
| @@ -36,8 +36,7 @@ void SkRecordDraw(const SkRecord&, SkCanvas*, SkPicture const* const drawablePic
|
| // the initialCTM parameter must set to just the replay matrix.
|
| void SkRecordPartialDraw(const SkRecord&, SkCanvas*,
|
| SkPicture const* const drawablePicts[], int drawableCount,
|
| - const SkRect&, unsigned start, unsigned stop,
|
| - const SkMatrix& initialCTM);
|
| + unsigned start, unsigned stop, const SkMatrix& initialCTM);
|
|
|
| namespace SkRecords {
|
|
|
| @@ -76,30 +75,6 @@ private:
|
| int fDrawableCount;
|
| };
|
|
|
| -// Used by SkRecordPartialDraw.
|
| -class PartialDraw : public Draw {
|
| -public:
|
| - PartialDraw(SkCanvas* canvas, SkPicture const* const drawablePicts[], int drawableCount,
|
| - const SkRect& clearRect, const SkMatrix& initialCTM)
|
| - : INHERITED(canvas, drawablePicts, NULL, drawableCount, &initialCTM), fClearRect(clearRect)
|
| - {}
|
| -
|
| - // Same as Draw for all ops except Clear.
|
| - template <typename T> void operator()(const T& r) {
|
| - this->INHERITED::operator()(r);
|
| - }
|
| - void operator()(const Clear& c) {
|
| - SkPaint p;
|
| - p.setColor(c.color);
|
| - DrawRect drawRect(p, fClearRect);
|
| - this->INHERITED::operator()(drawRect);
|
| - }
|
| -
|
| -private:
|
| - const SkRect fClearRect;
|
| - typedef Draw INHERITED;
|
| -};
|
| -
|
| } // namespace SkRecords
|
|
|
| #endif//SkRecordDraw_DEFINED
|
|
|