OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 SolidColorLayerChromium_h | 6 #ifndef SolidColorLayerChromium_h |
7 #define SolidColorLayerChromium_h | 7 #define SolidColorLayerChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 #include "LayerChromium.h" | 11 #include "LayerChromium.h" |
12 | 12 |
13 namespace WebCore { | 13 namespace cc { |
14 | 14 |
15 // A Layer that renders a solid color. The color is specified by using | 15 // A Layer that renders a solid color. The color is specified by using |
16 // setBackgroundColor() on the base class. | 16 // setBackgroundColor() on the base class. |
17 class SolidColorLayerChromium : public LayerChromium { | 17 class SolidColorLayerChromium : public LayerChromium { |
18 public: | 18 public: |
19 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 19 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
20 static PassRefPtr<SolidColorLayerChromium> create(); | 20 static PassRefPtr<SolidColorLayerChromium> create(); |
21 | 21 |
22 virtual ~SolidColorLayerChromium(); | 22 virtual ~SolidColorLayerChromium(); |
23 | 23 |
24 protected: | 24 protected: |
25 SolidColorLayerChromium(); | 25 SolidColorLayerChromium(); |
26 }; | 26 }; |
27 | 27 |
28 } | 28 } |
29 #endif // USE(ACCELERATED_COMPOSITING) | 29 #endif // USE(ACCELERATED_COMPOSITING) |
30 | 30 |
31 #endif | 31 #endif |
32 | |
OLD | NEW |