This source file includes following definitions.
- layer
- setBackgroundColor
#include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h"
#include "cc/layers/solid_color_layer.h"
#include "webkit/renderer/compositor_bindings/web_layer_impl.h"
using cc::SolidColorLayer;
namespace webkit {
WebSolidColorLayerImpl::WebSolidColorLayerImpl()
: layer_(new WebLayerImpl(SolidColorLayer::Create())) {
layer_->layer()->SetIsDrawable(true);
}
WebSolidColorLayerImpl::~WebSolidColorLayerImpl() {}
blink::WebLayer* WebSolidColorLayerImpl::layer() { return layer_.get(); }
void WebSolidColorLayerImpl::setBackgroundColor(blink::WebColor color) {
layer_->setBackgroundColor(color);
}
}