Loading services/surfaceflinger/Layer.cpp +2 −8 Original line number Diff line number Diff line Loading @@ -1788,13 +1788,9 @@ half4 Layer::getColor() const { } Layer::RoundedCornerState Layer::getRoundedCornerState() const { return getRoundedCornerStateInternal(mSourceBounds); } Layer::RoundedCornerState Layer::getRoundedCornerStateInternal(const FloatRect bounds) const { const auto& p = mDrawingParent.promote(); if (p != nullptr) { RoundedCornerState parentState = p->getRoundedCornerStateInternal(bounds); RoundedCornerState parentState = p->getRoundedCornerState(); if (parentState.radius > 0) { ui::Transform t = getActiveTransform(getDrawingState()); t = t.inverse(); Loading @@ -1808,9 +1804,7 @@ Layer::RoundedCornerState Layer::getRoundedCornerStateInternal(const FloatRect b } } const float radius = getDrawingState().cornerRadius; return radius > 0 ? RoundedCornerState(bounds.intersect(getCrop(getDrawingState()).toFloatRect()), radius) : RoundedCornerState(); return radius > 0 ? RoundedCornerState(getBounds(), radius) : RoundedCornerState(); } void Layer::commitChildList() { Loading services/surfaceflinger/Layer.h +0 −2 Original line number Diff line number Diff line Loading @@ -908,8 +908,6 @@ private: */ Rect getCroppedBufferSize(const Layer::State& s) const; RoundedCornerState getRoundedCornerStateInternal(const FloatRect bounds) const; // Cached properties computed from drawing state // Effective transform taking into account parent transforms and any parent scaling. ui::Transform mEffectiveTransform; Loading Loading
services/surfaceflinger/Layer.cpp +2 −8 Original line number Diff line number Diff line Loading @@ -1788,13 +1788,9 @@ half4 Layer::getColor() const { } Layer::RoundedCornerState Layer::getRoundedCornerState() const { return getRoundedCornerStateInternal(mSourceBounds); } Layer::RoundedCornerState Layer::getRoundedCornerStateInternal(const FloatRect bounds) const { const auto& p = mDrawingParent.promote(); if (p != nullptr) { RoundedCornerState parentState = p->getRoundedCornerStateInternal(bounds); RoundedCornerState parentState = p->getRoundedCornerState(); if (parentState.radius > 0) { ui::Transform t = getActiveTransform(getDrawingState()); t = t.inverse(); Loading @@ -1808,9 +1804,7 @@ Layer::RoundedCornerState Layer::getRoundedCornerStateInternal(const FloatRect b } } const float radius = getDrawingState().cornerRadius; return radius > 0 ? RoundedCornerState(bounds.intersect(getCrop(getDrawingState()).toFloatRect()), radius) : RoundedCornerState(); return radius > 0 ? RoundedCornerState(getBounds(), radius) : RoundedCornerState(); } void Layer::commitChildList() { Loading
services/surfaceflinger/Layer.h +0 −2 Original line number Diff line number Diff line Loading @@ -908,8 +908,6 @@ private: */ Rect getCroppedBufferSize(const Layer::State& s) const; RoundedCornerState getRoundedCornerStateInternal(const FloatRect bounds) const; // Cached properties computed from drawing state // Effective transform taking into account parent transforms and any parent scaling. ui::Transform mEffectiveTransform; Loading