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

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

Issue 594043005: Move paint code from RenderImage/RenderVideo into ImagePainter/VideoPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments. Created 6 years, 3 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
« no previous file with comments | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/paint/VideoPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/VideoPainter.h
diff --git a/Source/core/paint/HTMLCanvasPainter.h b/Source/core/paint/VideoPainter.h
similarity index 53%
copy from Source/core/paint/HTMLCanvasPainter.h
copy to Source/core/paint/VideoPainter.h
index 376ab6f2c80d29bb1a47c66607f59cf1ab73d4a5..5a6ea18105c58127b637bfddcecad8cb3ca8c766 100644
--- a/Source/core/paint/HTMLCanvasPainter.h
+++ b/Source/core/paint/VideoPainter.h
@@ -2,24 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef HTMLCanvasPainter_h
-#define HTMLCanvasPainter_h
+#ifndef VideoPainter_h
+#define VideoPainter_h
namespace blink {
+class GraphicsContext;
struct PaintInfo;
class LayoutPoint;
-class RenderHTMLCanvas;
+class LayoutRect;
+class RenderVideo;
-class HTMLCanvasPainter {
+class VideoPainter {
public:
- HTMLCanvasPainter(RenderHTMLCanvas& renderHTMLCanvas) : m_renderHTMLCanvas(renderHTMLCanvas) { }
+ VideoPainter(RenderVideo& renderVideo) : m_renderVideo(renderVideo) { }
+
void paintReplaced(PaintInfo&, const LayoutPoint&);
private:
- RenderHTMLCanvas& m_renderHTMLCanvas;
+
+ RenderVideo& m_renderVideo;
};
} // namespace blink
-#endif // HTMLCanvasPainter_h
+#endif // VideoPainter_h
« no previous file with comments | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/paint/VideoPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698