| 11 | using BuilderCb = Valdi::Function<void()>; |
| 12 | |
| 13 | struct DisplayListBuilder { |
| 14 | Ref<DisplayList> displayList; |
| 15 | |
| 16 | DisplayListBuilder(Scalar width, Scalar height); |
| 17 | |
| 18 | void context(Vector translation, Scalar opacity, BuilderCb&& cb); |
| 19 | |
| 20 | void context(const Matrix& matrix, Scalar opacity, BuilderCb&& cb); |
| 21 | |
| 22 | void context(Vector translation, Scalar opacity, uint64_t layerId, bool hasUpdates, BuilderCb&& cb); |
| 23 | |
| 24 | void context(const Matrix& matrix, Scalar opacity, uint64_t layerId, bool hasUpdates, BuilderCb&& cb); |
| 25 | |
| 26 | LayerContent draw(Size size, Scalar opacity, Valdi::Function<void(DrawingContext&)>&& cb); |
| 27 | |
| 28 | LayerContent rectangle(Size size, Scalar opacity); |
| 29 | |
| 30 | LayerContent externalSurface(Size size, Scalar opacity); |
| 31 | |
| 32 | void mask(const Rect& rect, BuilderCb&& cb); |
| 33 | |
| 34 | void layerContent(const LayerContent& layerContent, Scalar opacity); |
| 35 | |
| 36 | void clip(Size size); |
| 37 | void clip(const BorderRadius& borderRadius, Size size); |
| 38 | |
| 39 | void plane(BuilderCb&& cb); |
| 40 | }; |
| 41 | |
| 42 | std::vector<const Operations::Operation*> getOperationsFromDisplayList(const Ref<DisplayList>& displayList, |
| 43 | size_t planeIndex); |
no outgoing calls