Index: include/effects/SkLayerDrawLooper.h |
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h |
index bc1db1ae37f1cb71de0f261e9c9cf14e0965c405..adf07a97a5bc4c0aa17cadb763e572a6b1bb660e 100644 |
--- a/include/effects/SkLayerDrawLooper.h |
+++ b/include/effects/SkLayerDrawLooper.h |
@@ -99,6 +99,9 @@ public: |
*/ |
void addLayer() { this->addLayer(0, 0); } |
+ /// Similar to addLayer, but adds a layer to the top. |
+ SkPaint* addLayerOnTop(const LayerInfo&); |
+ |
// overrides from SkDrawLooper |
virtual void init(SkCanvas*); |
virtual bool next(SkCanvas*, SkPaint* paint); |
@@ -115,10 +118,9 @@ private: |
Rec* fNext; |
SkPaint fPaint; |
LayerInfo fInfo; |
- |
- static Rec* Reverse(Rec*); |
}; |
Rec* fRecs; |
+ Rec* fTopRec; |
int fCount; |
// state-machine during the init/next cycle |