Partial invalidation in custom Android view with hardware acceleration

后端 未结 2 1116
后悔当初
后悔当初 2020-11-30 09:25

I\'ve got a custom View in my application which fills the entire activity.

In most cases, when I want to refresh the control I call invalidate() without

2条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 09:50

    When HA is enabled, the rendering pipeline will use DisplayList to store the drawing commands. Even if you specify the dirty region in View.invalidate, the whole displaylist will be rebuilt (just think that how can we only update a small set of DisplayList, that's impossible right?). Eventually, as @Romain says, only the real dirty region will be redrawn.

提交回复
热议问题