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

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

Issue 2833883003: Skip paint chunks with effectively invisible opacity. (Closed)
Patch Set: Created 3 years, 8 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.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 83691b8b2a5b1467e59f4bee882dd28c06d63e57..25901a39748c4d1e958b5ee43c8cab0d4d4702c4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -566,11 +566,7 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
const LayoutBoxModelObject& paint_invalidation_container,
LayoutRect&);
- bool PaintsWithTransparency(GlobalPaintFlags global_paint_flags) const {
- return IsTransparent() &&
wkorman 2017/04/24 19:49:37 After this change nothing seems to use the kPaintL
- ((global_paint_flags & kGlobalPaintFlattenCompositingLayers) ||
- GetCompositingState() != kPaintsIntoOwnBacking);
- }
+ bool PaintsWithTransparency(GlobalPaintFlags) const;
// Returns the ScrollingCoordinator associated with this layer, if
// any. Otherwise nullptr.
@@ -1023,6 +1019,8 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
#endif
private:
+ bool IsComposited() const;
+
void SetNeedsCompositingInputsUpdateInternal();
void Update3DTransformedDescendantStatus();

Powered by Google App Engine
This is Rietveld 408576698