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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 1505243003: Revert of Create RenderSurface on Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alwayspt
Patch Set: rebase Created 5 years 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/test/layer_tree_host_common_test.h ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_host_common_test.cc
diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc
index 02b66ac2d15a6c2aa0e39db9adaf2f6f242de5ed..c05716df79aef91db4a0ea4f75f72f8c34ef3b11 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -11,6 +11,7 @@
#include "cc/trees/layer_tree_host_common.h"
namespace cc {
+
LayerTreeHostCommonTestBase::LayerTreeHostCommonTestBase(
const LayerTreeSettings& settings)
: LayerTestCommon::LayerImplTest(settings),
@@ -40,26 +41,13 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
const gfx::PointF& position,
const gfx::Size& bounds,
bool flatten_transform,
- bool is_3d_sorted) {
- SetLayerPropertiesForTestingInternal(layer, transform, transform_origin,
- position, bounds, flatten_transform,
- is_3d_sorted);
-}
-
-void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
- LayerImpl* layer,
- const gfx::Transform& transform,
- const gfx::Point3F& transform_origin,
- const gfx::PointF& position,
- const gfx::Size& bounds,
- bool flatten_transform,
bool is_3d_sorted,
bool create_render_surface) {
SetLayerPropertiesForTestingInternal(layer, transform, transform_origin,
position, bounds, flatten_transform,
is_3d_sorted);
if (create_render_surface) {
- layer->SetForceRenderSurface(true);
+ layer->SetHasRenderSurface(true);
}
}
@@ -95,8 +83,11 @@ void LayerTreeHostCommonTestBase::
LayerTreeHostCommon::PreCalculateMetaInformation(root_layer);
gfx::Transform identity_transform;
-
+ bool preserves_2d_axis_alignment = false;
bool can_render_to_separate_surface = true;
+ LayerTreeHostCommon::UpdateRenderSurfaces(
+ root_layer, can_render_to_separate_surface, identity_transform,
+ preserves_2d_axis_alignment);
Layer* page_scale_layer = nullptr;
Layer* inner_viewport_scroll_layer =
@@ -127,9 +118,7 @@ void LayerTreeHostCommonTestBase::
LayerTreeHostCommon::PreCalculateMetaInformationForTesting(root_layer);
gfx::Transform identity_transform;
-
bool can_render_to_separate_surface = true;
-
LayerImpl* page_scale_layer = nullptr;
LayerImpl* inner_viewport_scroll_layer =
root_layer->layer_tree_impl()->InnerViewportScrollLayer();
@@ -145,15 +134,14 @@ void LayerTreeHostCommonTestBase::
gfx::Size device_viewport_size =
gfx::Size(root_layer->bounds().width() * device_scale_factor,
root_layer->bounds().height() * device_scale_factor);
- update_layer_list_impl_.reset(new LayerImplList);
+ std::vector<LayerImpl*> update_layer_list;
BuildPropertyTreesAndComputeVisibleRects(
root_layer, page_scale_layer, inner_viewport_scroll_layer,
outer_viewport_scroll_layer, overscroll_elasticity_layer,
elastic_overscroll, page_scale_factor, device_scale_factor,
gfx::Rect(device_viewport_size), identity_transform,
can_render_to_separate_surface,
- root_layer->layer_tree_impl()->property_trees(),
- update_layer_list_impl_.get());
+ root_layer->layer_tree_impl()->property_trees(), &update_layer_list);
}
void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698