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

Unified Diff: cc/test/layer_tree_host_common_test.h

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: cc/test/layer_tree_host_common_test.h
diff --git a/cc/test/layer_tree_host_common_test.h b/cc/test/layer_tree_host_common_test.h
index 67eb6cc58b3da0af29b229a57c1154352fc5c0ef..e403fd6a73a6d8d24ae9bedb8c0314a0c3ef314b 100644
--- a/cc/test/layer_tree_host_common_test.h
+++ b/cc/test/layer_tree_host_common_test.h
@@ -29,22 +29,24 @@ class LayerTreeHostCommonTestBase {
LayerTreeHostCommonTestBase();
virtual ~LayerTreeHostCommonTestBase();
- template <typename LayerType>
void SetLayerPropertiesForTestingInternal(
- LayerType* layer,
+ 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) {
- layer->SetTransform(transform);
- layer->SetTransformOrigin(transform_origin);
- layer->SetPosition(position);
- layer->SetBounds(bounds);
- layer->SetShouldFlattenTransform(flatten_transform);
- layer->Set3dSortingContextId(is_3d_sorted ? 1 : 0);
- }
+ bool is_3d_sorted,
+ bool create_render_surface);
+ void SetLayerPropertiesForTestingInternal(
+ 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);
void SetLayerPropertiesForTesting(Layer* layer,
const gfx::Transform& transform,
@@ -60,7 +62,8 @@ class LayerTreeHostCommonTestBase {
const gfx::PointF& position,
const gfx::Size& bounds,
bool flatten_transform,
- bool is_3d_sorted);
+ bool is_3d_sorted,
+ bool create_render_surface);
void ExecuteCalculateDrawProperties(Layer* root_layer,
float device_scale_factor,

Powered by Google App Engine
This is Rietveld 408576698