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

Unified Diff: cc/layers/picture_image_layer_impl.cc

Issue 2094813003: cc: Merge PictureImageLayerImpl and PictureLayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: borders Created 4 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
« no previous file with comments | « cc/layers/picture_image_layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_image_layer_impl.cc
diff --git a/cc/layers/picture_image_layer_impl.cc b/cc/layers/picture_image_layer_impl.cc
deleted file mode 100644
index eeae33c367aa77f83bd744316227396dab22828d..0000000000000000000000000000000000000000
--- a/cc/layers/picture_image_layer_impl.cc
+++ /dev/null
@@ -1,59 +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/layers/picture_image_layer_impl.h"
-
-#include <algorithm>
-
-#include "cc/debug/debug_colors.h"
-#include "cc/trees/layer_tree_impl.h"
-
-namespace cc {
-
-PictureImageLayerImpl::PictureImageLayerImpl(LayerTreeImpl* tree_impl,
- int id,
- bool is_mask)
- : PictureLayerImpl(tree_impl, id, is_mask) {}
-
-PictureImageLayerImpl::~PictureImageLayerImpl() {
-}
-
-const char* PictureImageLayerImpl::LayerTypeAsString() const {
- return "cc::PictureImageLayerImpl";
-}
-
-std::unique_ptr<LayerImpl> PictureImageLayerImpl::CreateLayerImpl(
- LayerTreeImpl* tree_impl) {
- return PictureImageLayerImpl::Create(tree_impl, id(), is_mask_);
-}
-
-void PictureImageLayerImpl::GetDebugBorderProperties(
- SkColor* color, float* width) const {
- *color = DebugColors::ImageLayerBorderColor();
- *width = DebugColors::ImageLayerBorderWidth(layer_tree_impl());
-}
-
-bool PictureImageLayerImpl::ShouldAdjustRasterScale() const {
- return false;
-}
-
-void PictureImageLayerImpl::RecalculateRasterScales() {
- // Don't scale images during rastering to ensure image quality, save memory
- // and avoid frequent re-rastering on change of scale.
- raster_page_scale_ = 1.f;
- raster_device_scale_ = 1.f;
- raster_source_scale_ = std::max(1.f, MinimumContentsScale());
- raster_contents_scale_ = raster_source_scale_;
- // We don't need low res tiles.
- low_res_raster_contents_scale_ = raster_contents_scale_;
-}
-
-void PictureImageLayerImpl::UpdateIdealScales() {
- ideal_contents_scale_ = 1.f;
- ideal_page_scale_ = 1.f;
- ideal_device_scale_ = 1.f;
- ideal_source_scale_ = 1.f;
-}
-
-} // namespace cc
« no previous file with comments | « cc/layers/picture_image_layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698