From 60d6922a011fe18c111b8d30fb6ef1f655b6b15e Mon Sep 17 00:00:00 2001 From: Pablo Ceballos Date: Fri, 7 Aug 2015 14:47:20 -0700 Subject: libsgui: Change Rect default constructor The current Rect default constructor initializes to all zeroes. Change it to initialize to an invalid Rect. Modify all of the existing invocations of the default constructor to maintain the existing behavior. Bug 18173359 Change-Id: Ibbad076f1550a94f56d7b1cf5350071f2022e09a --- libs/gui/LayerState.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/gui/LayerState.cpp') diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 00323dc4f2..eafda86917 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -77,6 +77,16 @@ status_t ComposerState::read(const Parcel& input) { } +DisplayState::DisplayState() : + what(0), + layerStack(0), + orientation(eOrientationDefault), + viewport(Rect::EMPTY_RECT), + frame(Rect::EMPTY_RECT), + width(0), + height(0) { +} + status_t DisplayState::write(Parcel& output) const { output.writeStrongBinder(token); output.writeStrongBinder(IInterface::asBinder(surface)); -- cgit v1.2.3-59-g8ed1b