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

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

Issue 2430313004: Paint collapsed borders of a table as one display item (Closed)
Patch Set: Improve raster performance Created 4 years, 1 month 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 edda077fb96ec4880e7e43775f5cbeca25063792..26049f8c177611f114e7b77f2fc41941b09384ae 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -55,6 +55,7 @@
#include "core/paint/PaintLayerScrollableArea.h"
#include "core/paint/PaintLayerStackingNode.h"
#include "core/paint/PaintLayerStackingNodeIterator.h"
+#include "core/paint/PaintResult.h"
#include "platform/graphics/CompositingReasons.h"
#include "platform/graphics/SquashingDisallowedReasons.h"
#include "wtf/Allocator.h"
@@ -907,10 +908,10 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
m_previousPaintDirtyRect = rect;
}
- PaintLayerPainter::PaintResult previousPaintResult() const {
- return static_cast<PaintLayerPainter::PaintResult>(m_previousPaintResult);
+ PaintResult previousPaintResult() const {
+ return static_cast<PaintResult>(m_previousPaintResult);
}
- void setPreviousPaintResult(PaintLayerPainter::PaintResult result) {
+ void setPreviousPaintResult(PaintResult result) {
m_previousPaintResult = static_cast<unsigned>(result);
DCHECK(m_previousPaintResult == static_cast<unsigned>(result));
}
@@ -1162,7 +1163,9 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
unsigned m_lostGroupedMapping : 1;
unsigned m_needsRepaint : 1;
- unsigned m_previousPaintResult : 1; // PaintLayerPainter::PaintResult
+ unsigned m_previousPaintResult : 1; // PaintResult
+ static_assert(MaxPaintResult <= 2,
+ "Should update number of bits of m_previousPaintResult");
unsigned m_needsPaintPhaseDescendantOutlines : 1;
unsigned m_previousPaintPhaseDescendantOutlinesWasEmpty : 1;

Powered by Google App Engine
This is Rietveld 408576698