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/browser/compositor/software_browser_compositor_output_surface.
h" | 5 #include "content/browser/compositor/software_browser_compositor_output_surface.
h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "cc/output/output_surface_client.h" | 15 #include "cc/output/output_surface_client.h" |
16 #include "cc/output/output_surface_frame.h" | 16 #include "cc/output/output_surface_frame.h" |
17 #include "cc/output/software_output_device.h" | 17 #include "cc/output/software_output_device.h" |
18 #include "content/browser/renderer_host/render_widget_host_impl.h" | 18 #include "content/browser/renderer_host/render_widget_host_impl.h" |
19 #include "ui/events/latency_info.h" | |
20 #include "ui/gfx/vsync_provider.h" | 19 #include "ui/gfx/vsync_provider.h" |
| 20 #include "ui/latency/latency_info.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 SoftwareBrowserCompositorOutputSurface::SoftwareBrowserCompositorOutputSurface( | 24 SoftwareBrowserCompositorOutputSurface::SoftwareBrowserCompositorOutputSurface( |
25 std::unique_ptr<cc::SoftwareOutputDevice> software_device, | 25 std::unique_ptr<cc::SoftwareOutputDevice> software_device, |
26 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, | 26 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, |
27 scoped_refptr<base::SingleThreadTaskRunner> task_runner) | 27 scoped_refptr<base::SingleThreadTaskRunner> task_runner) |
28 : BrowserCompositorOutputSurface(std::move(software_device), | 28 : BrowserCompositorOutputSurface(std::move(software_device), |
29 update_vsync_parameters_callback), | 29 update_vsync_parameters_callback), |
30 task_runner_(std::move(task_runner)), | 30 task_runner_(std::move(task_runner)), |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return 0; | 117 return 0; |
118 } | 118 } |
119 | 119 |
120 #if defined(OS_MACOSX) | 120 #if defined(OS_MACOSX) |
121 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( | 121 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( |
122 bool suspended) { | 122 bool suspended) { |
123 } | 123 } |
124 #endif | 124 #endif |
125 | 125 |
126 } // namespace content | 126 } // namespace content |
OLD | NEW |