What's the magic behind CAReplicatorLayer?

后端 未结 1 483
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 04:26

What I find interesting with CAReplicatorLayer:

  • It is able to display a CALayer multiple times with different transforms very efficiently (how?)
  • It seems
相关标签:
1条回答
  • 2021-02-04 04:54

    The special-purpose CALayers like CAReplicatorLayer or CAGradientLayer are able (via private APIs) do execute their drawing directly on the GPU using fast filling or copying. In a sense they are different such that the backing store is not in normal RAM, but directly on the GPU.

    0 讨论(0)
提交回复
热议问题