Chromium Code Reviews| Index: src/effects/SkLayerDrawLooper.cpp |
| diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp |
| index 962ca293d8418fc416f6e2d34b21c315f2982e93..5fbb550f7543bfb9f605cbe027886a49d2be57da 100644 |
| --- a/src/effects/SkLayerDrawLooper.cpp |
| +++ b/src/effects/SkLayerDrawLooper.cpp |
| @@ -36,44 +36,6 @@ SkLayerDrawLooper::~SkLayerDrawLooper() { |
| } |
| } |
| -SkPaint* SkLayerDrawLooper::addLayer(const LayerInfo& info) { |
|
scroggo
2014/04/11 14:31:03
Same with the definitions/
|
| - fCount += 1; |
| - |
| - Rec* rec = SkNEW(Rec); |
| - rec->fNext = fRecs; |
| - rec->fInfo = info; |
| - fRecs = rec; |
| - if (NULL == fTopRec) { |
| - fTopRec = rec; |
| - } |
| - |
| - return &rec->fPaint; |
| -} |
| - |
| -void SkLayerDrawLooper::addLayer(SkScalar dx, SkScalar dy) { |
| - LayerInfo info; |
| - |
| - info.fOffset.set(dx, dy); |
| - (void)this->addLayer(info); |
| -} |
| - |
| -SkPaint* SkLayerDrawLooper::addLayerOnTop(const LayerInfo& info) { |
| - fCount += 1; |
| - |
| - Rec* rec = SkNEW(Rec); |
| - rec->fNext = NULL; |
| - rec->fInfo = info; |
| - if (NULL == fRecs) { |
| - fRecs = rec; |
| - } else { |
| - SkASSERT(NULL != fTopRec); |
| - fTopRec->fNext = rec; |
| - } |
| - fTopRec = rec; |
| - |
| - return &rec->fPaint; |
| -} |
| - |
| SkLayerDrawLooper::Context* SkLayerDrawLooper::createContext(SkCanvas* canvas, void* storage) const { |
| canvas->save(SkCanvas::kMatrix_SaveFlag); |
| return SkNEW_PLACEMENT_ARGS(storage, LayerDrawLooperContext, (this)); |