Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1517693002: Accelerated filters should filter unpadded primitives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do background rect outsetting before window intersection Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index df982ee3b772a6d2fc8da5b4bab1e45cf1824700..f1f683b47c1d4b69f10391d4f6de1780a9c81348 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2243,10 +2243,11 @@ LayoutRect PaintLayer::boundingBoxForCompositing(const PaintLayer* ancestorLayer
else
expandRectForReflectionAndStackingChildren(this, result);
- // FIXME: We can optimize the size of the composited layers, by not enlarging
- // filtered areas with the outsets if we know that the filter is going to render in hardware.
- // https://bugs.webkit.org/show_bug.cgi?id=81239
- result.expand(filterOutsets());
+ // Only enlarge by the filter outsets if we know the filter is going to be rendered in software.
+ // Accelerated filters will handle their own outsets.
+ if (paintsWithFilters()) {
+ result.expand(filterOutsets());
+ }
}
if (transform() && paintsWithTransform(GlobalPaintNormalPhase) && (this != ancestorLayer || options == MaybeIncludeTransformForAncestorLayer))

Powered by Google App Engine
This is Rietveld 408576698