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

Unified Diff: Source/core/paint/HTMLCanvasClipper.h

Issue 744163002: Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix VirtualTestSuites. Created 6 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: Source/core/paint/HTMLCanvasClipper.h
diff --git a/Source/core/paint/HTMLCanvasClipper.h b/Source/core/paint/HTMLCanvasClipper.h
new file mode 100644
index 0000000000000000000000000000000000000000..a17bb03937dc25e8235f29d42ccd0e0bc0205b47
--- /dev/null
+++ b/Source/core/paint/HTMLCanvasClipper.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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 HTMLCanvasClipper_h
+#define HTMLCanvasClipper_h
+
+#include "platform/geometry/LayoutRect.h"
+
+namespace blink {
+
+class RenderHTMLCanvas;
+struct PaintInfo;
+
+class HTMLCanvasClipper {
+public:
+ HTMLCanvasClipper(RenderHTMLCanvas&, const PaintInfo&, const LayoutRect& clipRect);
+ ~HTMLCanvasClipper();
+private:
+ LayoutRect m_clipRect;
+ const PaintInfo& m_paintInfo;
+ RenderHTMLCanvas& m_canvas;
+};
+
+} // namespace blink
+
+#endif // HTMLCanvasClipper_h

Powered by Google App Engine
This is Rietveld 408576698