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..622dd5f962dc3dc41be5ca27fb476593fab9be95 100644 |
--- a/third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h |
+++ b/third_party/WebKit/Source/platform/graphics/PaintInvalidationReason.h |
@@ -48,6 +48,11 @@ inline bool isFullPaintInvalidationReason(PaintInvalidationReason reason) |
return reason >= PaintInvalidationFull; |
} |
+inline bool isImmediateFullPaintInvalidationReason(PaintInvalidationReason reason) |
+{ |
+ return isFullPaintInvalidationReason(reason) && reason != PaintInvalidationDelayedFull; |
+} |
+ |
} // namespace blink |
#endif // PaintInvalidationReason_h |