am 4c05dd17: Ensure that viewport and frame are initialized.

* commit '4c05dd175ee3bd5119eecf368742b6510a8cfa6c':
  Ensure that viewport and frame are initialized.
This commit is contained in:
Jeff Brown 2012-09-09 00:17:07 -07:00 committed by Android Git Automerger
commit 7ee89420d8
2 changed files with 2 additions and 1 deletions

View File

@ -1728,6 +1728,8 @@ void SurfaceFlinger::onInitializeDisplays() {
d.what = DisplayState::eDisplayProjectionChanged;
d.token = mDefaultDisplays[DisplayDevice::DISPLAY_PRIMARY];
d.orientation = DisplayState::eOrientationDefault;
d.frame.makeInvalid();
d.viewport.makeInvalid();
displays.add(d);
setTransactionState(state, displays, 0);

View File

@ -192,7 +192,6 @@ Transform::vec3 Transform::transform(const vec3& v) const {
void Transform::transform(float* point, int x, int y) const
{
const mat33& M(mMatrix);
vec2 v(x, y);
v = transform(v);
point[0] = v[0];