Index: include/effects/SkLayerDrawLooper.h |
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h |
index bc1db1ae37f1cb71de0f261e9c9cf14e0965c405..2b959640d437ed0c9dd50f15fb14eddc5add49bf 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. |
Tom Hudson
2013/05/22 09:46:04
Nit: please use doxygen (javadoc)-style comments:
jbroman
2013/05/22 12:18:48
Done.
|
+ 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 |