Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: content/renderer/compositor_bindings/web_solid_color_layer_impl.cc

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "webkit/renderer/compositor_bindings/web_solid_color_layer_impl.h" 5 #include "content/renderer/compositor_bindings/web_solid_color_layer_impl.h"
6 6
7 #include "cc/layers/solid_color_layer.h" 7 #include "cc/layers/solid_color_layer.h"
8 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" 8 #include "content/renderer/compositor_bindings/web_layer_impl.h"
9 9
10 using cc::SolidColorLayer; 10 using cc::SolidColorLayer;
11 11
12 namespace webkit { 12 namespace content {
13 13
14 WebSolidColorLayerImpl::WebSolidColorLayerImpl() 14 WebSolidColorLayerImpl::WebSolidColorLayerImpl()
15 : layer_(new WebLayerImpl(SolidColorLayer::Create())) { 15 : layer_(new WebLayerImpl(SolidColorLayer::Create())) {
16 layer_->layer()->SetIsDrawable(true); 16 layer_->layer()->SetIsDrawable(true);
17 } 17 }
18 18
19 WebSolidColorLayerImpl::~WebSolidColorLayerImpl() {} 19 WebSolidColorLayerImpl::~WebSolidColorLayerImpl() {
20 }
20 21
21 blink::WebLayer* WebSolidColorLayerImpl::layer() { return layer_.get(); } 22 blink::WebLayer* WebSolidColorLayerImpl::layer() {
23 return layer_.get();
24 }
22 25
23 void WebSolidColorLayerImpl::setBackgroundColor(blink::WebColor color) { 26 void WebSolidColorLayerImpl::setBackgroundColor(blink::WebColor color) {
24 layer_->setBackgroundColor(color); 27 layer_->setBackgroundColor(color);
25 } 28 }
26 29
27 } // namespace webkit 30 } // namespace content
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698