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

Side by Side Diff: Source/core/paint/SVGImagePainter.h

Issue 675173003: Move <svg:image> buffered-rendering management to SVGImagePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/paint/SVGImagePainter.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 SVGImagePainter_h 5 #ifndef SVGImagePainter_h
6 #define SVGImagePainter_h 6 #define SVGImagePainter_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 class AffineTransform;
11 class FloatRect;
12 class ImageBuffer;
13 class IntSize;
10 struct PaintInfo; 14 struct PaintInfo;
11 class RenderSVGImage; 15 class RenderSVGImage;
12 16
13 class SVGImagePainter { 17 class SVGImagePainter {
14 public: 18 public:
15 SVGImagePainter(RenderSVGImage& renderSVGImage) : m_renderSVGImage(renderSVG Image) { } 19 SVGImagePainter(RenderSVGImage& renderSVGImage) : m_renderSVGImage(renderSVG Image) { }
16 20
17 void paint(PaintInfo&); 21 void paint(PaintInfo&);
18 22
23 private:
24 bool bufferForeground(PaintInfo&);
19 // Assumes the PaintInfo context has had all local transforms applied. 25 // Assumes the PaintInfo context has had all local transforms applied.
20 static void paintForeground(RenderSVGImage&, PaintInfo&); 26 void paintForeground(PaintInfo&);
21 27
22 private:
23 RenderSVGImage& m_renderSVGImage; 28 RenderSVGImage& m_renderSVGImage;
24 }; 29 };
25 30
26 } // namespace blink 31 } // namespace blink
27 32
28 #endif // SVGImagePainter_h 33 #endif // SVGImagePainter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/SVGImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698