Index: third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.h |
diff --git a/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.h b/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac4f7fb2cf6faab5bcebf0b3add5c52a8ef7cb0a |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/paint/HTMLCanvasPaintInvalidator.h |
@@ -0,0 +1,31 @@ |
+// 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 HTMLCanvasPaintInvalidator_h |
+#define HTMLCanvasPaintInvalidator_h |
+ |
+#include "platform/graphics/PaintInvalidationReason.h" |
+#include "wtf/Allocator.h" |
+ |
+namespace blink { |
+ |
+class LayoutHTMLCanvas; |
+struct PaintInvalidatorContext; |
+ |
+class HTMLCanvasPaintInvalidator { |
+ STACK_ALLOCATED(); |
+public: |
+ HTMLCanvasPaintInvalidator(const LayoutHTMLCanvas& htmlCanvas, const PaintInvalidatorContext& context) |
+ : m_htmlCanvas(htmlCanvas), m_context(context) { } |
+ |
+ PaintInvalidationReason invalidatePaintIfNeeded(); |
+ |
+private: |
+ const LayoutHTMLCanvas& m_htmlCanvas; |
+ const PaintInvalidatorContext& m_context; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |