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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/paint/VideoPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HTMLCanvasPainter_h 5 #ifndef VideoPainter_h
6 #define HTMLCanvasPainter_h 6 #define VideoPainter_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 class GraphicsContext;
10 struct PaintInfo; 11 struct PaintInfo;
11 class LayoutPoint; 12 class LayoutPoint;
12 class RenderHTMLCanvas; 13 class LayoutRect;
14 class RenderVideo;
13 15
14 class HTMLCanvasPainter { 16 class VideoPainter {
15 public: 17 public:
16 HTMLCanvasPainter(RenderHTMLCanvas& renderHTMLCanvas) : m_renderHTMLCanvas(r enderHTMLCanvas) { } 18 VideoPainter(RenderVideo& renderVideo) : m_renderVideo(renderVideo) { }
19
17 void paintReplaced(PaintInfo&, const LayoutPoint&); 20 void paintReplaced(PaintInfo&, const LayoutPoint&);
18 21
19 private: 22 private:
20 RenderHTMLCanvas& m_renderHTMLCanvas; 23
24 RenderVideo& m_renderVideo;
21 }; 25 };
22 26
23 } // namespace blink 27 } // namespace blink
24 28
25 #endif // HTMLCanvasPainter_h 29 #endif // VideoPainter_h
OLDNEW
« 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