Bug 1737682 Part 1: Cache calls to NativeLayerCA::ShouldSpecializeVideo in a state...
commit1b44cb44eed4e442c7ddb5d416dea1da21c4e2c7
authorBrad Werth <bwerth@mozilla.com>
Tue, 16 Nov 2021 20:55:44 +0000 (16 20:55 +0000)
committerBrad Werth <bwerth@mozilla.com>
Tue, 16 Nov 2021 20:55:44 +0000 (16 20:55 +0000)
treec7e9e0dba054b88eb391ea55846a0c9bcdc7321a
parent7a7d1b26de32fed92f0aca24f6046152d8caf93a
Bug 1737682 Part 1: Cache calls to NativeLayerCA::ShouldSpecializeVideo in a state bit. r=gfx-reviewers,mstange

This guarantees that any time mMutatedSpecializeVideo is set to true, the next
call to ApplyChanges will receive the value that actually triggered the
mutation. This was *probably* already true, but this change makes it explicit
and similar to other state changes.

Differential Revision: https://phabricator.services.mozilla.com/D129452
gfx/layers/NativeLayerCA.h
gfx/layers/NativeLayerCA.mm