Loading services/surfaceflinger/SurfaceFlinger.cpp +6 −10 Original line number Original line Diff line number Diff line Loading @@ -1719,7 +1719,6 @@ void SurfaceFlinger::computeVisibleRegions( // Remove the transparent area from the visible region // Remove the transparent area from the visible region if (translucent) { if (translucent) { const Transform tr(s.active.transform); const Transform tr(s.active.transform); if (tr.transformed()) { if (tr.preserveRects()) { if (tr.preserveRects()) { // transform the transparent region // transform the transparent region transparentRegion = tr.transform(s.activeTransparentRegion); transparentRegion = tr.transform(s.activeTransparentRegion); Loading @@ -1728,9 +1727,6 @@ void SurfaceFlinger::computeVisibleRegions( // transparent region optimization. // transparent region optimization. transparentRegion.clear(); transparentRegion.clear(); } } } else { transparentRegion = s.activeTransparentRegion; } } } // compute the opaque region // compute the opaque region Loading services/surfaceflinger/SurfaceFlinger_hwc1.cpp +6 −10 Original line number Original line Diff line number Diff line Loading @@ -1747,7 +1747,6 @@ void SurfaceFlinger::computeVisibleRegions( // Remove the transparent area from the visible region // Remove the transparent area from the visible region if (translucent) { if (translucent) { const Transform tr(s.active.transform); const Transform tr(s.active.transform); if (tr.transformed()) { if (tr.preserveRects()) { if (tr.preserveRects()) { // transform the transparent region // transform the transparent region transparentRegion = tr.transform(s.activeTransparentRegion); transparentRegion = tr.transform(s.activeTransparentRegion); Loading @@ -1756,9 +1755,6 @@ void SurfaceFlinger::computeVisibleRegions( // transparent region optimization. // transparent region optimization. transparentRegion.clear(); transparentRegion.clear(); } } } else { transparentRegion = s.activeTransparentRegion; } } } // compute the opaque region // compute the opaque region Loading services/surfaceflinger/Transform.cpp +1 −5 Original line number Original line Diff line number Diff line Loading @@ -87,10 +87,6 @@ const vec3& Transform::operator [] (size_t i) const { return mMatrix[i]; return mMatrix[i]; } } bool Transform::transformed() const { return type() > TRANSLATE; } float Transform::tx() const { float Transform::tx() const { return mMatrix[2][0]; return mMatrix[2][0]; } } Loading Loading @@ -224,7 +220,7 @@ Rect Transform::transform(const Rect& bounds) const Region Transform::transform(const Region& reg) const Region Transform::transform(const Region& reg) const { { Region out; Region out; if (CC_UNLIKELY(transformed())) { if (CC_UNLIKELY(type() > TRANSLATE)) { if (CC_LIKELY(preserveRects())) { if (CC_LIKELY(preserveRects())) { Region::const_iterator it = reg.begin(); Region::const_iterator it = reg.begin(); Region::const_iterator const end = reg.end(); Region::const_iterator const end = reg.end(); Loading services/surfaceflinger/Transform.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -60,7 +60,6 @@ public: }; }; // query the transform // query the transform bool transformed() const; bool preserveRects() const; bool preserveRects() const; uint32_t getType() const; uint32_t getType() const; uint32_t getOrientation() const; uint32_t getOrientation() const; Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +6 −10 Original line number Original line Diff line number Diff line Loading @@ -1719,7 +1719,6 @@ void SurfaceFlinger::computeVisibleRegions( // Remove the transparent area from the visible region // Remove the transparent area from the visible region if (translucent) { if (translucent) { const Transform tr(s.active.transform); const Transform tr(s.active.transform); if (tr.transformed()) { if (tr.preserveRects()) { if (tr.preserveRects()) { // transform the transparent region // transform the transparent region transparentRegion = tr.transform(s.activeTransparentRegion); transparentRegion = tr.transform(s.activeTransparentRegion); Loading @@ -1728,9 +1727,6 @@ void SurfaceFlinger::computeVisibleRegions( // transparent region optimization. // transparent region optimization. transparentRegion.clear(); transparentRegion.clear(); } } } else { transparentRegion = s.activeTransparentRegion; } } } // compute the opaque region // compute the opaque region Loading
services/surfaceflinger/SurfaceFlinger_hwc1.cpp +6 −10 Original line number Original line Diff line number Diff line Loading @@ -1747,7 +1747,6 @@ void SurfaceFlinger::computeVisibleRegions( // Remove the transparent area from the visible region // Remove the transparent area from the visible region if (translucent) { if (translucent) { const Transform tr(s.active.transform); const Transform tr(s.active.transform); if (tr.transformed()) { if (tr.preserveRects()) { if (tr.preserveRects()) { // transform the transparent region // transform the transparent region transparentRegion = tr.transform(s.activeTransparentRegion); transparentRegion = tr.transform(s.activeTransparentRegion); Loading @@ -1756,9 +1755,6 @@ void SurfaceFlinger::computeVisibleRegions( // transparent region optimization. // transparent region optimization. transparentRegion.clear(); transparentRegion.clear(); } } } else { transparentRegion = s.activeTransparentRegion; } } } // compute the opaque region // compute the opaque region Loading
services/surfaceflinger/Transform.cpp +1 −5 Original line number Original line Diff line number Diff line Loading @@ -87,10 +87,6 @@ const vec3& Transform::operator [] (size_t i) const { return mMatrix[i]; return mMatrix[i]; } } bool Transform::transformed() const { return type() > TRANSLATE; } float Transform::tx() const { float Transform::tx() const { return mMatrix[2][0]; return mMatrix[2][0]; } } Loading Loading @@ -224,7 +220,7 @@ Rect Transform::transform(const Rect& bounds) const Region Transform::transform(const Region& reg) const Region Transform::transform(const Region& reg) const { { Region out; Region out; if (CC_UNLIKELY(transformed())) { if (CC_UNLIKELY(type() > TRANSLATE)) { if (CC_LIKELY(preserveRects())) { if (CC_LIKELY(preserveRects())) { Region::const_iterator it = reg.begin(); Region::const_iterator it = reg.begin(); Region::const_iterator const end = reg.end(); Region::const_iterator const end = reg.end(); Loading
services/surfaceflinger/Transform.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -60,7 +60,6 @@ public: }; }; // query the transform // query the transform bool transformed() const; bool preserveRects() const; bool preserveRects() const; uint32_t getType() const; uint32_t getType() const; uint32_t getOrientation() const; uint32_t getOrientation() const; Loading