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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 10 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/platform/graphics/GraphicsLayerDebugInfo.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
index ccc64fadde376e15ef523b2cf79c2877979d4833..fd79f680f3dc1f635a53c5f0c2ee2a864ef937ac 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerDebugInfo.h
@@ -35,6 +35,7 @@
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/CompositingReasons.h"
#include "platform/graphics/PaintInvalidationReason.h"
+#include "platform/graphics/SquashingDisallowedReasons.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/Vector.h"
@@ -58,6 +59,9 @@ public:
CompositingReasons compositingReasons() const { return m_compositingReasons; }
void setCompositingReasons(CompositingReasons reasons) { m_compositingReasons = reasons; }
+
+ SquashingDisallowedReasons squashingDisallowedReasons() const { return m_squashingDisallowedReasons; }
+ void setSquashingDisallowedReasons(SquashingDisallowedReasons reasons) { m_squashingDisallowedReasons = reasons; }
void setOwnerNodeId(int id) { m_ownerNodeId = id; }
void appendAnnotatedInvalidateRect(const FloatRect&, PaintInvalidationReason);
@@ -66,6 +70,7 @@ public:
private:
void appendAnnotatedInvalidateRects(base::trace_event::TracedValue*) const;
void appendCompositingReasons(base::trace_event::TracedValue*) const;
+ void appendSquashingDisallowedReasons(base::trace_event::TracedValue*) const;
void appendOwnerNodeId(base::trace_event::TracedValue*) const;
struct AnnotatedInvalidationRect {
@@ -75,6 +80,7 @@ private:
};
CompositingReasons m_compositingReasons;
+ SquashingDisallowedReasons m_squashingDisallowedReasons;
int m_ownerNodeId;
Vector<AnnotatedInvalidationRect> m_invalidations;
Vector<AnnotatedInvalidationRect> m_previousInvalidations;

Powered by Google App Engine
This is Rietveld 408576698