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

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

Issue 1390933003: Implement the framework for the paint property hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 57a380ee4c57ec967373c13219afbffbf3325be3..7f23183ef5ec998a715553f55422233e03265b4d 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -66,6 +66,7 @@ class FilterOperations;
class HitTestRequest;
class HitTestResult;
class HitTestingTransformState;
+class ObjectPaintProperties;
class PaintLayerCompositor;
class CompositedLayerMapping;
class ComputedStyle;
@@ -575,6 +576,12 @@ public:
// For subsequence display items.
DisplayItemClient displayItemClient() const { return toDisplayItemClient(this); }
+ // Paint properties encode the hierarchical transform, clip, scroll, and
+ // effect information used for painting. Properties should only be set
+ // during UpdatePaintProperties, and should only be accessed during Paint.
+ void setPaintProperties(PassOwnPtr<ObjectPaintProperties>);
+ const ObjectPaintProperties* paintProperties() const;
+
private:
// Bounding box in the coordinates of this layer.
LayoutRect logicalBoundingBox() const;
@@ -759,6 +766,9 @@ private:
OwnPtr<PaintLayerStackingNode> m_stackingNode;
OwnPtr<PaintLayerReflectionInfo> m_reflectionInfo;
+ // Lazily-allocated paint properties for m_layoutObject.
+ OwnPtr<ObjectPaintProperties> m_paintProperties;
+
LayoutSize m_subpixelAccumulation; // The accumulated subpixel offset of a composited layer's composited bounds compared to absolute coordinates.
IntSize m_previousScrollOffsetAccumulationForPainting;

Powered by Google App Engine
This is Rietveld 408576698