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

Unified Diff: cc/blink/web_image_layer_impl.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « cc/blink/web_image_layer_impl.h ('k') | cc/blink/web_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_image_layer_impl.cc
diff --git a/cc/blink/web_image_layer_impl.cc b/cc/blink/web_image_layer_impl.cc
deleted file mode 100644
index afd551a3102b0166976ce45473b3fac5acc19663..0000000000000000000000000000000000000000
--- a/cc/blink/web_image_layer_impl.cc
+++ /dev/null
@@ -1,45 +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 "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"
-
-namespace cc_blink {
-
-WebImageLayerImpl::WebImageLayerImpl() {
- if (WebLayerImpl::UsingPictureLayer())
- layer_.reset(new WebLayerImplFixedBounds(cc::PictureImageLayer::Create()));
- else
- layer_.reset(new WebLayerImpl(cc::ImageLayer::Create()));
-}
-
-WebImageLayerImpl::~WebImageLayerImpl() {
-}
-
-blink::WebLayer* WebImageLayerImpl::layer() {
- return layer_.get();
-}
-
-void WebImageLayerImpl::setImageBitmap(const 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()));
- } else {
- static_cast<cc::ImageLayer*>(layer_->layer())->SetBitmap(bitmap);
- }
-}
-
-void WebImageLayerImpl::setNearestNeighbor(bool nearest_neighbor) {
- if (WebLayerImpl::UsingPictureLayer()) {
- static_cast<cc::PictureImageLayer*>(layer_->layer())
- ->SetNearestNeighbor(nearest_neighbor);
- }
-}
-
-} // namespace cc_blink
« no previous file with comments | « cc/blink/web_image_layer_impl.h ('k') | cc/blink/web_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698