Index: third_party/WebKit/Source/core/paint/PaintResult.h |
diff --git a/third_party/WebKit/Source/core/paint/PaintResult.h b/third_party/WebKit/Source/core/paint/PaintResult.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a755ac8af34661a76b52f7eeb948ba9613ae50dd |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/paint/PaintResult.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PaintResult_h |
+#define PaintResult_h |
+ |
+namespace blink { |
+ |
+// Used as the return type of some paint methods. |
+enum PaintResult { |
+ // The layer/object is fully painted. This includes cases that nothing needs |
+ // painting regardless of the paint rect. |
+ FullyPainted, |
+ // Some part of the layer/object is out of the paint rect and may be not fully |
+ // painted. The results cannot be cached because they may change when paint |
+ // rect changes. |
+ MayBeClippedByPaintDirtyRect, |
+ |
+ MaxPaintResult = MayBeClippedByPaintDirtyRect, |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PaintResult.h |