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

Side by Side Diff: content/renderer/gpu/render_widget_compositor_unittest.cc

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another GYP fix Created 4 years, 5 months 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 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 <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "cc/output/begin_frame_args.h" 15 #include "cc/output/begin_frame_args.h"
16 #include "cc/test/failure_output_surface.h" 16 #include "cc/test/failure_output_surface.h"
17 #include "cc/test/fake_external_begin_frame_source.h" 17 #include "cc/test/fake_external_begin_frame_source.h"
18 #include "cc/trees/layer_tree_host.h" 18 #include "cc/trees/layer_tree_host.h"
19 #include "components/scheduler/renderer/renderer_scheduler.h"
20 #include "content/public/test/mock_render_thread.h" 19 #include "content/public/test/mock_render_thread.h"
21 #include "content/renderer/render_widget.h" 20 #include "content/renderer/render_widget.h"
22 #include "content/test/fake_compositor_dependencies.h" 21 #include "content/test/fake_compositor_dependencies.h"
23 #include "content/test/fake_renderer_scheduler.h"
24 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
26 #include "third_party/WebKit/public/platform/WebScreenInfo.h" 24 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
27 25
28 using testing::AllOf; 26 using testing::AllOf;
29 using testing::Field; 27 using testing::Field;
30 28
31 namespace content { 29 namespace content {
32 namespace { 30 namespace {
33 31
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 287 }
290 288
291 TEST_F(RenderWidgetCompositorOutputSurfaceTest, FallbackSuccessNormalSuccess) { 289 TEST_F(RenderWidgetCompositorOutputSurfaceTest, FallbackSuccessNormalSuccess) {
292 // The first success is a fallback, but the next should not be a fallback. 290 // The first success is a fallback, but the next should not be a fallback.
293 RunTest(false, RenderWidgetCompositor::OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK, 291 RunTest(false, RenderWidgetCompositor::OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK,
294 1, 1); 292 1, 1);
295 } 293 }
296 294
297 } // namespace 295 } // namespace
298 } // namespace content 296 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698