summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2013-03-04 22:12:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-03-04 22:12:24 +0000
commitf59d2f9070621e8f36b2ded3ec1d07bd3aec6150 (patch)
tree811f00a95b568369170c3c1bbbdfa93b24a7e72a /services/surfaceflinger/SurfaceFlinger.cpp
parent006a601f22b275bcabf608f630b321df027d56d1 (diff)
parent3da1672acbe6a84f1d69f1e21096115c60826aea (diff)
Merge changes I0e90b3f3,Ib7769bde,I4c25f34f,I1ec6400a into jb-mr2-dev
* changes: implement display projection clipping in h/w composer refactor the crop region for hwc is calculated/set apply the projection's viewport to the visibleregion passed to hwc set correct crop rectangle in LayerBase::setCrop
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index ee3e93b1a4..bdeffdfcac 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -1384,7 +1384,7 @@ void SurfaceFlinger::computeVisibleRegions(
// handle hidden surfaces by setting the visible region to empty
if (CC_LIKELY(layer->isVisible())) {
const bool translucent = !layer->isOpaque();
- Rect bounds(layer->computeBounds());
+ Rect bounds(s.transform.transform(layer->computeBounds()));
visibleRegion.set(bounds);
if (!visibleRegion.isEmpty()) {
// Remove the transparent area from the visible region