Index: cc/blink/web_image_layer_impl.cc |
diff --git a/content/renderer/compositor_bindings/web_image_layer_impl.cc b/cc/blink/web_image_layer_impl.cc |
similarity index 69% |
rename from content/renderer/compositor_bindings/web_image_layer_impl.cc |
rename to cc/blink/web_image_layer_impl.cc |
index ecbfbd06bf20dd96652a0bc53fdd17f8b7e9f253..b31d890dc2c618390850ece816ede74b0cea8259 100644 |
--- a/content/renderer/compositor_bindings/web_image_layer_impl.cc |
+++ b/cc/blink/web_image_layer_impl.cc |
@@ -2,14 +2,14 @@ |
// 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_image_layer_impl.h" |
+#include "cc/blink/web_image_layer_impl.h" |
+#include "cc/blink/web_layer_impl.h" |
+#include "cc/blink/web_layer_impl_fixed_bounds.h" |
#include "cc/layers/image_layer.h" |
#include "cc/layers/picture_image_layer.h" |
-#include "content/renderer/compositor_bindings/web_layer_impl.h" |
-#include "content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h" |
-namespace content { |
+namespace cc_blink { |
WebImageLayerImpl::WebImageLayerImpl() { |
if (WebLayerImpl::UsingPictureLayer()) |
@@ -28,12 +28,11 @@ blink::WebLayer* WebImageLayerImpl::layer() { |
void WebImageLayerImpl::setBitmap(SkBitmap bitmap) { |
if (WebLayerImpl::UsingPictureLayer()) { |
static_cast<cc::PictureImageLayer*>(layer_->layer())->SetBitmap(bitmap); |
- static_cast<WebLayerImplFixedBounds*>(layer_.get())->SetFixedBounds( |
- gfx::Size(bitmap.width(), bitmap.height())); |
+ static_cast<WebLayerImplFixedBounds*>(layer_.get()) |
+ ->SetFixedBounds(gfx::Size(bitmap.width(), bitmap.height())); |
} else { |
static_cast<cc::ImageLayer*>(layer_->layer())->SetBitmap(bitmap); |
} |
} |
-} // namespace content |
- |
+} // namespace cc_blink |