From 4bacc9dc674792c745f362962883a19f4a35c88c Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 8 Sep 2011 18:31:55 -0700 Subject: Fix an issue is SF that caused drawing artifacts when hwc changed mode we were not redrawing and/or clearing the FB properly when hwc moved a layer from/to FB to/from OVERLAY. In these cases we needed to expand the dirty region to include the layer that changed mode. Also split composeSurfaces() which was becoming quite large. Change-Id: Id6fa1acfc4ff694037fddf7efd037a4405732073 --- services/surfaceflinger/LayerBase.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'services/surfaceflinger/LayerBase.cpp') diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 603fb607bae1..dfc531e2f15f 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -344,6 +344,14 @@ void LayerBase::setPerFrameData(hwc_layer_t* hwcl) { hwcl->handle = NULL; } +void LayerBase::setOverlay(bool inOverlay) { + mInOverlay = inOverlay; +} + +bool LayerBase::isOverlay() const { + return mInOverlay; +} + void LayerBase::setFiltering(bool filtering) { mFiltering = filtering; -- cgit v1.2.3-59-g8ed1b