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

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

Issue 2247543003: Tweak priorities of paint invalidation reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsRebaseline (for win and mac) Created 4 years, 4 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/PaintInvalidationReason.h
diff --git a/third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h b/third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h
index d998991b305185d4a188290e889ebd2944256906..508e43932cb0c7f4a9ec44c6d0270e742283058a 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h
+++ b/third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h
@@ -11,6 +11,7 @@ namespace blink {
enum PaintInvalidationReason {
PaintInvalidationNone,
+ PaintInvalidationProbablyNone,
PaintInvalidationIncremental,
PaintInvalidationRectangle,
// The following reasons will all cause full invalidation of the LayoutObject.
@@ -48,6 +49,11 @@ inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason)
return reason >= PaintInvalidationFull;
}
+inline bool isImmediateFullPaintInvalidationReason(PaintInvalidationReason reason)
+{
+ return isFullPaintInvalidationReason(reason) && reason != PaintInvalidationDelayedFull;
+}
+
} // namespace blink
#endif // PaintInvalidationReason_h

Powered by Google App Engine
This is Rietveld 408576698