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

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

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 12 matching lines...) Expand all
23 #include "cc/layers/layer.h" 23 #include "cc/layers/layer.h"
24 #include "cc/output/begin_frame_args.h" 24 #include "cc/output/begin_frame_args.h"
25 #include "cc/output/copy_output_request.h" 25 #include "cc/output/copy_output_request.h"
26 #include "cc/output/copy_output_result.h" 26 #include "cc/output/copy_output_result.h"
27 #include "cc/output/latency_info_swap_promise.h" 27 #include "cc/output/latency_info_swap_promise.h"
28 #include "cc/output/swap_promise.h" 28 #include "cc/output/swap_promise.h"
29 #include "cc/resources/single_release_callback.h" 29 #include "cc/resources/single_release_callback.h"
30 #include "cc/scheduler/begin_frame_source.h" 30 #include "cc/scheduler/begin_frame_source.h"
31 #include "cc/trees/latency_info_swap_promise_monitor.h" 31 #include "cc/trees/latency_info_swap_promise_monitor.h"
32 #include "cc/trees/layer_tree_host.h" 32 #include "cc/trees/layer_tree_host.h"
33 #include "components/scheduler/renderer/renderer_scheduler.h"
33 #include "content/common/content_switches_internal.h" 34 #include "content/common/content_switches_internal.h"
34 #include "content/common/gpu/client/context_provider_command_buffer.h" 35 #include "content/common/gpu/client/context_provider_command_buffer.h"
35 #include "content/public/common/content_switches.h" 36 #include "content/public/common/content_switches.h"
36 #include "content/renderer/input/input_handler_manager.h" 37 #include "content/renderer/input/input_handler_manager.h"
37 #include "content/renderer/scheduler/renderer_scheduler.h"
38 #include "gpu/command_buffer/client/gles2_interface.h" 38 #include "gpu/command_buffer/client/gles2_interface.h"
39 #include "third_party/WebKit/public/platform/WebCompositeAndReadbackAsyncCallbac k.h" 39 #include "third_party/WebKit/public/platform/WebCompositeAndReadbackAsyncCallbac k.h"
40 #include "third_party/WebKit/public/platform/WebSelectionBound.h" 40 #include "third_party/WebKit/public/platform/WebSelectionBound.h"
41 #include "third_party/WebKit/public/platform/WebSize.h" 41 #include "third_party/WebKit/public/platform/WebSize.h"
42 #include "third_party/WebKit/public/web/WebKit.h" 42 #include "third_party/WebKit/public/web/WebKit.h"
43 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 43 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
44 #include "third_party/WebKit/public/web/WebWidget.h" 44 #include "third_party/WebKit/public/web/WebWidget.h"
45 #include "ui/gfx/frame_time.h" 45 #include "ui/gfx/frame_time.h"
46 #include "ui/gl/gl_switches.h" 46 #include "ui/gl/gl_switches.h"
47 #include "ui/native_theme/native_theme_switches.h" 47 #include "ui/native_theme/native_theme_switches.h"
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 cc::ContextProvider* provider = 920 cc::ContextProvider* provider =
921 compositor_deps_->GetSharedMainThreadContextProvider(); 921 compositor_deps_->GetSharedMainThreadContextProvider();
922 // provider can be NULL after the GPU process crashed enough times and we 922 // provider can be NULL after the GPU process crashed enough times and we
923 // don't want to restart it any more (falling back to software). 923 // don't want to restart it any more (falling back to software).
924 if (!provider) 924 if (!provider)
925 return; 925 return;
926 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 926 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
927 } 927 }
928 928
929 } // namespace content 929 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/gpu/render_widget_compositor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698