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

Side by Side Diff: cc/test/layer_tree_host_common_test.cc

Issue 1912893002: cc : Stop pushing properties not used by LayerImpl to LayerImpl. (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/layer_tree_host_common_test.h" 5 #include "cc/test/layer_tree_host_common_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const gfx::Point3F& transform_origin, 55 const gfx::Point3F& transform_origin,
56 const gfx::PointF& position, 56 const gfx::PointF& position,
57 const gfx::Size& bounds, 57 const gfx::Size& bounds,
58 bool flatten_transform, 58 bool flatten_transform,
59 bool is_3d_sorted, 59 bool is_3d_sorted,
60 bool create_render_surface) { 60 bool create_render_surface) {
61 SetLayerPropertiesForTestingInternal(layer, transform, position, bounds, 61 SetLayerPropertiesForTestingInternal(layer, transform, position, bounds,
62 flatten_transform, is_3d_sorted); 62 flatten_transform, is_3d_sorted);
63 layer->test_properties()->transform_origin = transform_origin; 63 layer->test_properties()->transform_origin = transform_origin;
64 if (create_render_surface) { 64 if (create_render_surface) {
65 layer->SetForceRenderSurface(true); 65 layer->test_properties()->force_render_surface = true;
66 } 66 }
67 } 67 }
68 68
69 void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties( 69 void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
70 Layer* root_layer, 70 Layer* root_layer,
71 float device_scale_factor, 71 float device_scale_factor,
72 float page_scale_factor, 72 float page_scale_factor,
73 Layer* page_scale_layer, 73 Layer* page_scale_layer,
74 bool can_use_lcd_text, 74 bool can_use_lcd_text,
75 bool layers_always_allowed_lcd_text) { 75 bool layers_always_allowed_lcd_text) {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 LayerTreeHostCommonTest::LayerTreeHostCommonTest() 238 LayerTreeHostCommonTest::LayerTreeHostCommonTest()
239 : LayerTreeHostCommonTestBase(LayerTreeSettings()) {} 239 : LayerTreeHostCommonTestBase(LayerTreeSettings()) {}
240 240
241 LayerTreeHostCommonTest::LayerTreeHostCommonTest( 241 LayerTreeHostCommonTest::LayerTreeHostCommonTest(
242 const LayerTreeSettings& settings) 242 const LayerTreeSettings& settings)
243 : LayerTreeHostCommonTestBase(settings) { 243 : LayerTreeHostCommonTestBase(settings) {
244 } 244 }
245 245
246 } // namespace cc 246 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/tiles/tile_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698