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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <limits> | 10 #include <limits> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "content/public/common/screen_info.h" | 54 #include "content/public/common/screen_info.h" |
55 #include "content/public/renderer/content_renderer_client.h" | 55 #include "content/public/renderer/content_renderer_client.h" |
56 #include "content/renderer/gpu/render_widget_compositor_delegate.h" | 56 #include "content/renderer/gpu/render_widget_compositor_delegate.h" |
57 #include "content/renderer/input/input_handler_manager.h" | 57 #include "content/renderer/input/input_handler_manager.h" |
58 #include "gpu/command_buffer/client/gles2_interface.h" | 58 #include "gpu/command_buffer/client/gles2_interface.h" |
59 #include "gpu/command_buffer/service/gpu_switches.h" | 59 #include "gpu/command_buffer/service/gpu_switches.h" |
60 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" | 60 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" |
61 #include "third_party/WebKit/public/platform/WebCompositeAndReadbackAsyncCallbac
k.h" | 61 #include "third_party/WebKit/public/platform/WebCompositeAndReadbackAsyncCallbac
k.h" |
62 #include "third_party/WebKit/public/platform/WebCompositorMutatorClient.h" | 62 #include "third_party/WebKit/public/platform/WebCompositorMutatorClient.h" |
63 #include "third_party/WebKit/public/platform/WebLayoutAndPaintAsyncCallback.h" | 63 #include "third_party/WebKit/public/platform/WebLayoutAndPaintAsyncCallback.h" |
| 64 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
64 #include "third_party/WebKit/public/platform/WebSize.h" | 65 #include "third_party/WebKit/public/platform/WebSize.h" |
65 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 66 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
66 #include "third_party/WebKit/public/web/WebKit.h" | 67 #include "third_party/WebKit/public/web/WebKit.h" |
67 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
68 #include "third_party/WebKit/public/web/WebSelection.h" | 68 #include "third_party/WebKit/public/web/WebSelection.h" |
69 #include "ui/gfx/switches.h" | 69 #include "ui/gfx/switches.h" |
70 #include "ui/gl/gl_switches.h" | 70 #include "ui/gl/gl_switches.h" |
71 #include "ui/native_theme/native_theme_features.h" | 71 #include "ui/native_theme/native_theme_features.h" |
72 #include "ui/native_theme/overlay_scrollbar_constants_aura.h" | 72 #include "ui/native_theme/overlay_scrollbar_constants_aura.h" |
73 | 73 |
74 namespace base { | 74 namespace base { |
75 class Value; | 75 class Value; |
76 } | 76 } |
77 | 77 |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 const cc::LocalSurfaceId& local_surface_id) { | 1231 const cc::LocalSurfaceId& local_surface_id) { |
1232 layer_tree_host_->SetLocalSurfaceId(local_surface_id); | 1232 layer_tree_host_->SetLocalSurfaceId(local_surface_id); |
1233 } | 1233 } |
1234 | 1234 |
1235 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { | 1235 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { |
1236 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( | 1236 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( |
1237 std::move(callback), base::ThreadTaskRunnerHandle::Get())); | 1237 std::move(callback), base::ThreadTaskRunnerHandle::Get())); |
1238 } | 1238 } |
1239 | 1239 |
1240 } // namespace content | 1240 } // namespace content |
OLD | NEW |