| 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 cc { | 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 static scoped_refptr<SolidColorLayerChromium> create(); | 19 static scoped_refptr<SolidColorLayerChromium> create(); |
| 20 | 20 |
| 21 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 21 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 SolidColorLayerChromium(); | 24 SolidColorLayerChromium(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 virtual ~SolidColorLayerChromium(); | 27 virtual ~SolidColorLayerChromium(); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } | 30 } |
| 31 #endif // USE(ACCELERATED_COMPOSITING) | 31 #endif // USE(ACCELERATED_COMPOSITING) |
| 32 | 32 |
| 33 #endif | 33 #endif |
| OLD | NEW |