layers:Capture rect by value to validate 2nd cb
authorTobin Ehlis <tobine@google.com>
Tue, 17 Apr 2018 22:14:26 +0000 (16:14 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 18 Apr 2018 12:25:15 +0000 (06:25 -0600)
commitfa702f44e942f9dea26ba7c52bcb4062335ddb8c
tree8fee6aeca50b5e92a1d54e70766fa27e59ab02be
parent3699563e5e63dbb9f29f9aae3c4146b2de08e752
layers:Capture rect by value to validate 2nd cb

Fixes #2587

The lambda function was only capturing the pRect pointer by value so
the underlying rect value could still be changed between when the
command was submitted to a secondary CB and when the rect was validated
at CmdExecuteCommands() time.

Copy the actual rect value so that it can't change.
layers/buffer_validation.cpp