summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2017-10-31 14:15:36 -0700
committerchaviw <chaviw@google.com>2017-10-31 14:15:36 -0700
commitb1154d14ac8055f77e861c7ec8ef9c9f63c3a899 (patch)
treee8535fcfb85f92f0de34ec7ceba4646be854b00f /opengl/tests/gl_basic/gl_basic.cpp
parentcd8ad33289b74243e21a776a5a9170c845d990c4 (diff)
Compute crop using all ancestors, not just immediate parent
The current computeCrop function only handles intersecting with the parent's crop and not traversing to the top most parent. This change will recurse and intersect all the ancestor's crop with the current layer's crop. Test: Created a parent layer several layer's above the current layer that had a crop. Before, the content would stretch. With the change, the content is the correct size. Change-Id: I592e0afdfc9db574c5ccc79aacedfbd42357c8f7
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions