OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/frame_generator.h" | 5 #include "services/ui/ws/frame_generator.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
9 #include "base/test/test_message_loop.h" | 10 #include "base/test/test_message_loop.h" |
10 #include "cc/quads/render_pass.h" | 11 #include "cc/quads/render_pass.h" |
11 #include "cc/quads/shared_quad_state.h" | 12 #include "cc/quads/shared_quad_state.h" |
12 #include "services/ui/ws/ids.h" | 13 #include "services/ui/ws/ids.h" |
13 #include "services/ui/ws/platform_display_init_params.h" | 14 #include "services/ui/ws/platform_display_init_params.h" |
14 #include "services/ui/ws/server_window.h" | 15 #include "services/ui/ws/server_window.h" |
15 #include "services/ui/ws/server_window_compositor_frame_sink_manager.h" | 16 #include "services/ui/ws/server_window_compositor_frame_sink_manager.h" |
16 #include "services/ui/ws/test_server_window_delegate.h" | 17 #include "services/ui/ws/test_server_window_delegate.h" |
17 #include "services/ui/ws/test_utils.h" | 18 #include "services/ui/ws/test_utils.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 EXPECT_EQ(3u, quad_state_list->size()); | 138 EXPECT_EQ(3u, quad_state_list->size()); |
138 auto it = quad_state_list->begin(); | 139 auto it = quad_state_list->begin(); |
139 EXPECT_EQ(child_opacity * root_opacity, (*it)->opacity); | 140 EXPECT_EQ(child_opacity * root_opacity, (*it)->opacity); |
140 EXPECT_EQ(child_opacity * root_opacity, (*++it)->opacity); | 141 EXPECT_EQ(child_opacity * root_opacity, (*++it)->opacity); |
141 EXPECT_EQ(root_opacity, (*++it)->opacity); | 142 EXPECT_EQ(root_opacity, (*++it)->opacity); |
142 } | 143 } |
143 | 144 |
144 } // namespace test | 145 } // namespace test |
145 } // namespace ws | 146 } // namespace ws |
146 } // namespace ui | 147 } // namespace ui |
OLD | NEW |