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