diff options
Diffstat (limited to 'libs/hwui/DisplayList.h')
-rw-r--r-- | libs/hwui/DisplayList.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libs/hwui/DisplayList.h b/libs/hwui/DisplayList.h index 8622d61..935282e 100644 --- a/libs/hwui/DisplayList.h +++ b/libs/hwui/DisplayList.h @@ -112,7 +112,7 @@ public: */ class DisplayListData : public LightRefBase<DisplayListData> { public: - DisplayListData() : projectionIndex(-1) {} + DisplayListData() : projectionReceiveIndex(-1) {} // allocator into which all ops were allocated LinearAllocator allocator; @@ -123,8 +123,7 @@ public: Vector<DrawDisplayListOp*> children; // index of DisplayListOp restore, after which projected descendents should be drawn - int projectionIndex; - Matrix4 projectionTransform; + int projectionReceiveIndex; }; /** @@ -198,6 +197,14 @@ public: mProjectBackwards = shouldProject; } + void setProjectionReceiver(bool shouldRecieve) { + mProjectionReceiver = shouldRecieve; + } + + bool isProjectionReceiver() { + return mProjectionReceiver; + } + void setOutline(const SkPath* outline) { if (!outline) { mOutline.reset(); @@ -600,6 +607,7 @@ private: bool mClipToBounds; bool mIsolatedZVolume; bool mProjectBackwards; + bool mProjectionReceiver; SkPath mOutline; float mAlpha; bool mHasOverlappingRendering; |