Loading include/gui/SurfaceComposerClient.h +1 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ public: const sp<IGraphicBufferProducer>& bufferProducer); static void setDisplayLayerStack(const sp<IBinder>& token, uint32_t layerStack); static void setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height); /* setDisplayProjection() defines the projection of layer stacks * to a given display. Loading include/private/gui/LayerState.h +3 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,8 @@ struct DisplayState { enum { eSurfaceChanged = 0x01, eLayerStackChanged = 0x02, eDisplayProjectionChanged = 0x04 eDisplayProjectionChanged = 0x04, eDisplaySizeChanged = 0x08 }; uint32_t what; Loading @@ -123,6 +124,7 @@ struct DisplayState { uint32_t orientation; Rect viewport; Rect frame; uint32_t width, height; status_t write(Parcel& output) const; status_t read(const Parcel& input); }; Loading libs/gui/SurfaceComposerClient.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ public: uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect); void setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height); static void setAnimationTransaction() { Composer::getInstance().setAnimationTransactionImpl(); Loading Loading @@ -426,6 +427,14 @@ void Composer::setDisplayProjection(const sp<IBinder>& token, mForceSynchronous = true; // TODO: do we actually still need this? } void Composer::setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height) { Mutex::Autolock _l(mLock); DisplayState& s(getDisplayStateLocked(token)); s.width = width; s.height = height; s.what |= DisplayState::eDisplaySizeChanged; } // --------------------------------------------------------------------------- SurfaceComposerClient::SurfaceComposerClient() Loading Loading @@ -621,6 +630,11 @@ void SurfaceComposerClient::setDisplayProjection(const sp<IBinder>& token, layerStackRect, displayRect); } void SurfaceComposerClient::setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height) { Composer::getInstance().setDisplaySize(token, width, height); } // ---------------------------------------------------------------------------- status_t SurfaceComposerClient::getDisplayConfigs( Loading services/surfaceflinger/SurfaceFlinger.h +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ private: Rect viewport; Rect frame; uint8_t orientation; uint32_t width, height; String8 displayName; bool isSecure; }; Loading Loading
include/gui/SurfaceComposerClient.h +1 −0 Original line number Diff line number Diff line Loading @@ -146,6 +146,7 @@ public: const sp<IGraphicBufferProducer>& bufferProducer); static void setDisplayLayerStack(const sp<IBinder>& token, uint32_t layerStack); static void setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height); /* setDisplayProjection() defines the projection of layer stacks * to a given display. Loading
include/private/gui/LayerState.h +3 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,8 @@ struct DisplayState { enum { eSurfaceChanged = 0x01, eLayerStackChanged = 0x02, eDisplayProjectionChanged = 0x04 eDisplayProjectionChanged = 0x04, eDisplaySizeChanged = 0x08 }; uint32_t what; Loading @@ -123,6 +124,7 @@ struct DisplayState { uint32_t orientation; Rect viewport; Rect frame; uint32_t width, height; status_t write(Parcel& output) const; status_t read(const Parcel& input); }; Loading
libs/gui/SurfaceComposerClient.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ public: uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect); void setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height); static void setAnimationTransaction() { Composer::getInstance().setAnimationTransactionImpl(); Loading Loading @@ -426,6 +427,14 @@ void Composer::setDisplayProjection(const sp<IBinder>& token, mForceSynchronous = true; // TODO: do we actually still need this? } void Composer::setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height) { Mutex::Autolock _l(mLock); DisplayState& s(getDisplayStateLocked(token)); s.width = width; s.height = height; s.what |= DisplayState::eDisplaySizeChanged; } // --------------------------------------------------------------------------- SurfaceComposerClient::SurfaceComposerClient() Loading Loading @@ -621,6 +630,11 @@ void SurfaceComposerClient::setDisplayProjection(const sp<IBinder>& token, layerStackRect, displayRect); } void SurfaceComposerClient::setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height) { Composer::getInstance().setDisplaySize(token, width, height); } // ---------------------------------------------------------------------------- status_t SurfaceComposerClient::getDisplayConfigs( Loading
services/surfaceflinger/SurfaceFlinger.h +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ private: Rect viewport; Rect frame; uint8_t orientation; uint32_t width, height; String8 displayName; bool isSecure; }; Loading