summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueConsumer.cpp
diff options
context:
space:
mode:
author Fabien Sanglard <sanglardf@google.com> 2017-02-16 19:29:35 -0800
committer Fabien Sanglard <sanglardf@google.com> 2017-03-02 10:56:29 -0800
commitf8e9366df2fc079c37de6ea35d70bf2b227e6946 (patch)
treee82841ec5e22453288ad2d4d0e0c204f344e43a3 /libs/gui/BufferQueueConsumer.cpp
parent16401044cb4f2c9f487bdf6abb9aeb7d1e3de578 (diff)
Fix typo in Region to avoid unexpected values
b/34193533 showed that Framework can sometimes use very large rect (presumably to hide a window **very** far out of the screen visible rectangle). Which results in SF freezing and using 100% of CPU. max_value is not initialized to the right value. Really it should be 0x7FFFFFFF instead of 0x7FFFFFF Since Region was templatized (originally to potentially use int16_t) the fix uses C++11 numeric_limits instead of INT_MAX. Test: Manual Change-Id: Iaee64727226730dbea1f05618a97b801254cde4d
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
0 files changed, 0 insertions, 0 deletions