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