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
3 // found in the LICENSE file.
5 #include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h"
7 #include "cc/layers/solid_color_layer.h"
8 #include "webkit/renderer/compositor_bindings/web_layer_impl.h"
10 using cc::SolidColorLayer;
14 WebSolidColorLayerImpl::WebSolidColorLayerImpl()
15 : layer_(new WebLayerImpl(SolidColorLayer::Create())) {
16 layer_->layer()->SetIsDrawable(true);
19 WebSolidColorLayerImpl::~WebSolidColorLayerImpl() {}
21 WebKit::WebLayer* WebSolidColorLayerImpl::layer() { return layer_.get(); }
23 void WebSolidColorLayerImpl::setBackgroundColor(WebKit::WebColor color) {
24 layer_->setBackgroundColor(color);