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

Unified Diff: content/renderer/compositor_bindings/web_content_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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/compositor_bindings/web_content_layer_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_content_layer_impl.cc b/content/renderer/compositor_bindings/web_content_layer_impl.cc
similarity index 88%
rename from webkit/renderer/compositor_bindings/web_content_layer_impl.cc
rename to content/renderer/compositor_bindings/web_content_layer_impl.cc
index 96799e689f38ea1d7b8f28ba47991ed65b6c40d1..3d1492f954953b7d13e0bf3f7b06ed51157e69e2 100644
--- a/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
+++ b/content/renderer/compositor_bindings/web_content_layer_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/renderer/compositor_bindings/web_content_layer_impl.h"
+#include "content/renderer/compositor_bindings/web_content_layer_impl.h"
#include "cc/layers/content_layer.h"
#include "cc/layers/picture_layer.h"
@@ -16,11 +16,10 @@
using cc::ContentLayer;
using cc::PictureLayer;
-namespace webkit {
+namespace content {
WebContentLayerImpl::WebContentLayerImpl(blink::WebContentLayerClient* client)
- : client_(client),
- ignore_lcd_text_change_(false) {
+ : client_(client), ignore_lcd_text_change_(false) {
if (WebLayerImpl::UsingPictureLayer())
layer_ = make_scoped_ptr(new WebLayerImpl(PictureLayer::Create(this)));
else
@@ -36,7 +35,9 @@ WebContentLayerImpl::~WebContentLayerImpl() {
static_cast<ContentLayer*>(layer_->layer())->ClearClient();
}
-blink::WebLayer* WebContentLayerImpl::layer() { return layer_.get(); }
+blink::WebLayer* WebContentLayerImpl::layer() {
+ return layer_.get();
+}
void WebContentLayerImpl::setDoubleSided(bool double_sided) {
layer_->layer()->SetDoubleSided(double_sided);
@@ -81,6 +82,9 @@ void WebContentLayerImpl::DidChangeLayerCanUseLCDText() {
layer_->invalidate();
}
-bool WebContentLayerImpl::FillsBoundsCompletely() const { return false; }
+bool WebContentLayerImpl::FillsBoundsCompletely() const {
+ return false;
+}
+
+} // namespace content
-} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698