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

Side by Side Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 1430353002: cc::Fix computation of surface backfacing-ness when using property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "cc/animation/keyframed_animation_curve.h" 10 #include "cc/animation/keyframed_animation_curve.h"
(...skipping 6038 matching lines...) Expand 10 before | Expand all | Expand 10 after
6049 EXPECT_EQ(1u, render_surface_layer_list_impl() 6049 EXPECT_EQ(1u, render_surface_layer_list_impl()
6050 ->at(1) 6050 ->at(1)
6051 ->render_surface() 6051 ->render_surface()
6052 ->layer_list() 6052 ->layer_list()
6053 .size()); 6053 .size());
6054 6054
6055 gfx::Transform rotation_transform = identity_transform; 6055 gfx::Transform rotation_transform = identity_transform;
6056 rotation_transform.RotateAboutXAxis(180.0); 6056 rotation_transform.RotateAboutXAxis(180.0);
6057 6057
6058 render_surface->SetTransform(rotation_transform); 6058 render_surface->SetTransform(rotation_transform);
6059 root->layer_tree_impl()->property_trees()->needs_rebuild = true;
6059 6060
6060 ExecuteCalculateDrawProperties(root); 6061 ExecuteCalculateDrawProperties(root);
6061 6062
6062 EXPECT_EQ(1u, render_surface_layer_list_impl()->size()); 6063 EXPECT_EQ(1u, render_surface_layer_list_impl()->size());
6063 EXPECT_EQ(0u, render_surface_layer_list_impl() 6064 EXPECT_EQ(0u, render_surface_layer_list_impl()
6064 ->at(0) 6065 ->at(0)
6065 ->render_surface() 6066 ->render_surface()
6066 ->layer_list() 6067 ->layer_list()
6067 .size()); 6068 .size());
6068 } 6069 }
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
9125 bool root_in_rsll = 9126 bool root_in_rsll =
9126 std::find(rsll->begin(), rsll->end(), root) != rsll->end(); 9127 std::find(rsll->begin(), rsll->end(), root) != rsll->end();
9127 EXPECT_TRUE(root_in_rsll); 9128 EXPECT_TRUE(root_in_rsll);
9128 bool render_surface2_in_rsll = 9129 bool render_surface2_in_rsll =
9129 std::find(rsll->begin(), rsll->end(), render_surface2) != rsll->end(); 9130 std::find(rsll->begin(), rsll->end(), render_surface2) != rsll->end();
9130 EXPECT_FALSE(render_surface2_in_rsll); 9131 EXPECT_FALSE(render_surface2_in_rsll);
9131 } 9132 }
9132 9133
9133 } // namespace 9134 } // namespace
9134 } // namespace cc 9135 } // namespace cc
OLDNEW
« cc/trees/layer_tree_host_common.cc ('K') | « cc/trees/layer_tree_host_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698