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