Chromium Code Reviews| 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 c8675f4de9d0cc91f2b59eeeafe1836a1ab7ea72..a8861fd5ee438b8fc58188ae2e12f5ebd22550f0 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.h |
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.h |
| @@ -74,6 +74,8 @@ class HitTestingTransformState; |
| class PaintLayerCompositor; |
| class TransformationMatrix; |
| +using PaintLayerId = uint64_t; |
| + |
| enum IncludeSelfOrNot { kIncludeSelf, kExcludeSelf }; |
| enum CompositingQueryMode { |
| @@ -1023,6 +1025,9 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient { |
| void EndShouldKeepAliveAllClientsRecursive(); |
| #endif |
| + // A id for this PaintLayer that is unique for the lifetime of the WebView. |
|
wkorman
2017/05/18 00:45:58
A -> An
chrishtr
2017/05/18 01:25:47
Done.
|
| + PaintLayerId UniqueId() const { return unique_id_; } |
| + |
| private: |
| void SetNeedsCompositingInputsUpdateInternal(); |
| @@ -1270,6 +1275,8 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient { |
| std::unique_ptr<PaintLayerRareData> rare_data_; |
| + PaintLayerId unique_id_; |
| + |
| FRIEND_TEST_ALL_PREFIXES(PaintLayerTest, |
| DescendantDependentFlagsStopsAtThrottledFrames); |
| FRIEND_TEST_ALL_PREFIXES(PaintLayerTest, |