diff options
author | Jamie Gennis <jgennis@google.com> | 2011-01-28 18:21:54 -0800 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-01-28 18:21:54 -0800 |
commit | 2ece4cdc3fd0f8a45a889c711dba7165729e8ca5 (patch) | |
tree | a76c7f3eed692edcce369a6ae198202fdd1c7500 /services | |
parent | 0982dc6488a921d9d54d23b9180a9acf33c61526 (diff) | |
download | frameworks_base-2ece4cdc3fd0f8a45a889c711dba7165729e8ca5.zip frameworks_base-2ece4cdc3fd0f8a45a889c711dba7165729e8ca5.tar.gz frameworks_base-2ece4cdc3fd0f8a45a889c711dba7165729e8ca5.tar.bz2 |
Reset ANativeWindow crop on buffer geometry changes.
This changes the ANativeWindow API and the two implementations to reset
the window's crop rectangle to be uncropped when the window's buffer
geometry is changed.
Bug: 3359604
Change-Id: I64283dc8382ae687787ec0bebe6a5d5b4a0dcd6b
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/LayerBase.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 8d83f0b..86057f8 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -498,11 +498,9 @@ void LayerBase::drawWithOpenGL(const Region& clip, const Texture& texture) const } void LayerBase::setBufferCrop(const Rect& crop) { - if (!crop.isEmpty()) { - if (mBufferCrop != crop) { - mBufferCrop = crop; - mFlinger->invalidateHwcGeometry(); - } + if (mBufferCrop != crop) { + mBufferCrop = crop; + mFlinger->invalidateHwcGeometry(); } } |