OSDN Git Service

GLConsumer: Fix unsigned subtraction during crop
authorDan Stoza <stoza@google.com>
Wed, 4 Mar 2015 22:58:02 +0000 (14:58 -0800)
committerDan Stoza <stoza@google.com>
Wed, 4 Mar 2015 22:58:02 +0000 (14:58 -0800)
commitabf952c1b121405ebb6720a779817b7850fb43b9
treed2132448e1e87d4828e48c4542ec131317cc6fa9
parent123edd9f812c93973de923397f2a5cb6fdaa4135
GLConsumer: Fix unsigned subtraction during crop

Since some variables had been switched from signed to unsigned, there
was a section of code that was guaranteed to be incorrect because it
effectively did 'if (a < b) { c = a - b; }'. This change fixes it.

Bug: 19346631
Change-Id: I9cdd6c9a0179801addebb5d6dc1fbaddf8f53c62
libs/gui/GLConsumer.cpp