OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/renderer/gpu/render_widget_compositor.h" | 5 #include "content/renderer/gpu/render_widget_compositor.h" |
6 | 6 |
7 #include "cc/output/begin_frame_args.h" | 7 #include "cc/output/begin_frame_args.h" |
8 #include "cc/test/failure_output_surface.h" | 8 #include "cc/test/failure_output_surface.h" |
9 #include "cc/trees/layer_tree_host.h" | 9 #include "cc/trees/layer_tree_host.h" |
| 10 #include "components/scheduler/renderer/renderer_scheduler.h" |
10 #include "content/public/test/mock_render_thread.h" | 11 #include "content/public/test/mock_render_thread.h" |
11 #include "content/renderer/render_widget.h" | 12 #include "content/renderer/render_widget.h" |
12 #include "content/renderer/scheduler/renderer_scheduler.h" | |
13 #include "content/test/fake_compositor_dependencies.h" | 13 #include "content/test/fake_compositor_dependencies.h" |
14 #include "content/test/fake_renderer_scheduler.h" | 14 #include "content/test/fake_renderer_scheduler.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 17 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
18 | 18 |
19 using testing::AllOf; | 19 using testing::AllOf; |
20 using testing::Field; | 20 using testing::Field; |
21 | 21 |
22 namespace content { | 22 namespace content { |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 | 310 |
311 TEST_F(RenderWidgetCompositorOutputSurfaceTest, FallbackSuccessNormalSuccess) { | 311 TEST_F(RenderWidgetCompositorOutputSurfaceTest, FallbackSuccessNormalSuccess) { |
312 // The first success is a fallback, but the next should not be a fallback. | 312 // The first success is a fallback, but the next should not be a fallback. |
313 RunTest(false, RenderWidgetCompositor::OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK, | 313 RunTest(false, RenderWidgetCompositor::OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK, |
314 1, 1); | 314 1, 1); |
315 } | 315 } |
316 | 316 |
317 } // namespace | 317 } // namespace |
318 } // namespace content | 318 } // namespace content |
OLD | NEW |