diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index e11bfa00d..ef910d962 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -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); diff --git a/services/surfaceflinger/Transform.cpp b/services/surfaceflinger/Transform.cpp index ca3fa6eef..aca90e016 100644 --- a/services/surfaceflinger/Transform.cpp +++ b/services/surfaceflinger/Transform.cpp @@ -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];