OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |