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

Unified Diff: content/renderer/compositor_bindings/web_solid_color_layer_impl.cc

Issue 431273002: compositor_bindings: Stop overriding createSolidColorLayer(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm web_solid_color_layer_impl.* Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/compositor_bindings/web_solid_color_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/compositor_bindings/web_solid_color_layer_impl.cc
diff --git a/content/renderer/compositor_bindings/web_solid_color_layer_impl.cc b/content/renderer/compositor_bindings/web_solid_color_layer_impl.cc
deleted file mode 100644
index 6cd9c1925803cb751b9fce8e39740170c3b24fc6..0000000000000000000000000000000000000000
--- a/content/renderer/compositor_bindings/web_solid_color_layer_impl.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/renderer/compositor_bindings/web_solid_color_layer_impl.h"
-
-#include "cc/layers/solid_color_layer.h"
-#include "content/renderer/compositor_bindings/web_layer_impl.h"
-
-using cc::SolidColorLayer;
-
-namespace content {
-
-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);
-}
-
-} // namespace content
-
« no previous file with comments | « content/renderer/compositor_bindings/web_solid_color_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698