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

Unified Diff: cc/picture_image_layer_impl.cc

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/picture_image_layer_impl.h ('k') | cc/picture_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_image_layer_impl.cc
diff --git a/cc/picture_image_layer_impl.cc b/cc/picture_image_layer_impl.cc
deleted file mode 100644
index 602aae325ffb7e22174d7ef8cd6d74593e51e21a..0000000000000000000000000000000000000000
--- a/cc/picture_image_layer_impl.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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/picture_image_layer_impl.h"
-
-#include "cc/debug/debug_colors.h"
-#include "cc/trees/layer_tree_impl.h"
-
-namespace cc {
-
-PictureImageLayerImpl::PictureImageLayerImpl(LayerTreeImpl* treeImpl, int id)
- : PictureLayerImpl(treeImpl, id) {
-}
-
-PictureImageLayerImpl::~PictureImageLayerImpl() {
-}
-
-const char* PictureImageLayerImpl::LayerTypeAsString() const {
- return "PictureImageLayer";
-}
-
-scoped_ptr<LayerImpl> PictureImageLayerImpl::CreateLayerImpl(
- LayerTreeImpl* treeImpl) {
- return PictureImageLayerImpl::Create(treeImpl, id()).PassAs<LayerImpl>();
-}
-
-void PictureImageLayerImpl::GetDebugBorderProperties(
- SkColor* color, float* width) const {
- *color = DebugColors::ImageLayerBorderColor();
- *width = DebugColors::ImageLayerBorderWidth(layer_tree_impl());
-}
-
-void PictureImageLayerImpl::CalculateRasterContentsScale(
- bool animating_transform_to_screen,
- float* raster_contents_scale,
- float* low_res_raster_contents_scale) {
- // Don't scale images during rastering to ensure image quality, save memory
- // and avoid frequent re-rastering on change of scale.
- *raster_contents_scale = std::max(1.f, MinimumContentsScale());
- // We don't need low res tiles.
- *low_res_raster_contents_scale = *raster_contents_scale;
-}
-
-} // namespace cc
« no previous file with comments | « cc/picture_image_layer_impl.h ('k') | cc/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698