| OLD | NEW |
| 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 |
| OLD | NEW |