OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 | 5 |
6 #ifndef LayerPainterChromium_h | 6 #ifndef LayerPainterChromium_h |
7 #define LayerPainterChromium_h | 7 #define LayerPainterChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 class SkCanvas; | 11 class SkCanvas; |
12 | 12 |
13 namespace WebCore { | 13 namespace cc { |
14 | 14 |
15 class FloatRect; | 15 class FloatRect; |
16 class IntRect; | 16 class IntRect; |
17 | 17 |
18 class LayerPainterChromium { | 18 class LayerPainterChromium { |
19 public: | 19 public: |
20 virtual ~LayerPainterChromium() { } | 20 virtual ~LayerPainterChromium() { } |
21 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque)
= 0; | 21 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque)
= 0; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace WebCore | 24 } // namespace cc |
25 #endif // USE(ACCELERATED_COMPOSITING) | 25 #endif // USE(ACCELERATED_COMPOSITING) |
26 #endif // LayerPainterChromium_h | 26 #endif // LayerPainterChromium_h |
27 | |
OLD | NEW |