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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 2179263002: cc: Remove SetLayerPropertiesForTesting from LayerTreeHostCommonTestBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lthcommontest-harness
Patch Set: lthcommontest-harness2: rebase Created 4 years, 5 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/test/layer_tree_host_common_test.h ('k') | cc/trees/layer_tree_host_common_unittest.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 1eed9ba60ea1f96cb791f9f6a2d339c489919c69..498cec1f798aef1af9435812ee6ed2af1003b096 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -18,54 +18,7 @@ LayerTreeHostCommonTestBase::LayerTreeHostCommonTestBase(
const LayerTreeSettings& settings)
: LayerTestCommon::LayerImplTest(settings) {}
-LayerTreeHostCommonTestBase::~LayerTreeHostCommonTestBase() {
-}
-
-void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
- Layer* 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) {
- SetLayerPropertiesForTestingInternal(layer, transform, position, bounds,
- is_3d_sorted);
- layer->SetTransformOrigin(transform_origin);
- layer->SetShouldFlattenTransform(flatten_transform);
-}
-
-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) {
- SetLayerPropertiesForTestingInternal(layer, transform, position, bounds,
- is_3d_sorted);
- layer->test_properties()->transform_origin = transform_origin;
- layer->test_properties()->should_flatten_transform = flatten_transform;
-}
-
-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, position, bounds,
- is_3d_sorted);
- layer->test_properties()->transform_origin = transform_origin;
- layer->test_properties()->should_flatten_transform = flatten_transform;
- if (create_render_surface) {
- layer->test_properties()->force_render_surface = true;
- }
-}
+LayerTreeHostCommonTestBase::~LayerTreeHostCommonTestBase() = default;
void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
Layer* root_layer,
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698