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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/test/layer_tree_pixel_test.h » ('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 844165720f6fdb7433a8ef0a28604e77a53996a5..d91652fe378ef165b1fd5f78f903e86f65dcb525 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -27,13 +27,9 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
const gfx::Size& bounds,
bool flatten_transform,
bool is_3d_sorted) {
- SetLayerPropertiesForTestingInternal<Layer>(layer,
- transform,
- transform_origin,
- position,
- bounds,
- flatten_transform,
- is_3d_sorted);
+ SetLayerPropertiesForTestingInternal(layer, transform, transform_origin,
+ position, bounds, flatten_transform,
+ is_3d_sorted);
}
void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
@@ -43,14 +39,15 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
const gfx::PointF& position,
const gfx::Size& bounds,
bool flatten_transform,
- bool is_3d_sorted) {
- SetLayerPropertiesForTestingInternal<LayerImpl>(layer,
- transform,
- transform_origin,
- position,
- bounds,
- flatten_transform,
- is_3d_sorted);
+ 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->SetHasRenderSurface(true);
+ }
+
layer->SetContentBounds(bounds);
}
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/test/layer_tree_pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698