VideoDecoderShim: mark transformation constants static
The constants are used outside the scope they're defined in, which means unless they're marked 'static', their lifetime has ended and the compiler is free to reuse their stack slot. Marking them static means they're always alive, and also removes the need to copy them to the stack. Re-using the stack slot for some part of these was causing the red channel to disappear during chromoting when compiling with Clang without -fmerge-all-constants. Bug: 835506 Change-Id: I6bddbf531979fecf78c80c0f96afda8ea0d05e33 Reviewed-on: https://chromium-review.googlesource.com/1035323Reviewed-by:Nico Weber <thakis@chromium.org> Reviewed-by:
Raymes Khoury <raymes@chromium.org> Commit-Queue: Raymes Khoury <raymes@chromium.org> Cr-Commit-Position: refs/heads/master@{#554935}
Showing
Please register or sign in to comment