OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <tuple> | 9 #include <tuple> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
17 #include "base/test/scoped_feature_list.h" | 18 #include "base/test/scoped_feature_list.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
20 #include "build/build_config.h" | 21 #include "build/build_config.h" |
21 #include "content/browser/gpu/compositor_util.h" | 22 #include "content/browser/gpu/compositor_util.h" |
22 #include "content/browser/renderer_host/input/input_router_impl.h" | 23 #include "content/browser/renderer_host/input/input_router_impl.h" |
23 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 24 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
24 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 25 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
(...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2154 EXPECT_EQ(0u, host_->processed_frame_messages_count()); | 2155 EXPECT_EQ(0u, host_->processed_frame_messages_count()); |
2155 | 2156 |
2156 frame = MakeCompositorFrame(1.f, frame_size); | 2157 frame = MakeCompositorFrame(1.f, frame_size); |
2157 frame.metadata.frame_token = frame_token3; | 2158 frame.metadata.frame_token = frame_token3; |
2158 host_->SubmitCompositorFrame(local_surface_id, std::move(frame)); | 2159 host_->SubmitCompositorFrame(local_surface_id, std::move(frame)); |
2159 EXPECT_EQ(0u, host_->queued_messages_.size()); | 2160 EXPECT_EQ(0u, host_->queued_messages_.size()); |
2160 EXPECT_EQ(1u, host_->processed_frame_messages_count()); | 2161 EXPECT_EQ(1u, host_->processed_frame_messages_count()); |
2161 } | 2162 } |
2162 | 2163 |
2163 } // namespace content | 2164 } // namespace content |
OLD | NEW |