OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser/aura/software_browser_compositor_output_surface.h" | 5 #include "content/browser/compositor/software_browser_compositor_output_surface.
h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
11 #include "cc/output/software_output_device.h" | 11 #include "cc/output/software_output_device.h" |
12 #include "content/browser/aura/browser_compositor_output_surface_proxy.h" | 12 #include "content/browser/compositor/browser_compositor_output_surface_proxy.h" |
13 #include "content/browser/renderer_host/render_widget_host_impl.h" | 13 #include "content/browser/renderer_host/render_widget_host_impl.h" |
14 #include "ui/events/latency_info.h" | 14 #include "ui/events/latency_info.h" |
15 #include "ui/gfx/vsync_provider.h" | 15 #include "ui/gfx/vsync_provider.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 SoftwareBrowserCompositorOutputSurface::SoftwareBrowserCompositorOutputSurface( | 19 SoftwareBrowserCompositorOutputSurface::SoftwareBrowserCompositorOutputSurface( |
20 scoped_refptr<BrowserCompositorOutputSurfaceProxy> surface_proxy, | 20 scoped_refptr<BrowserCompositorOutputSurfaceProxy> surface_proxy, |
21 scoped_ptr<cc::SoftwareOutputDevice> software_device, | 21 scoped_ptr<cc::SoftwareOutputDevice> software_device, |
22 int surface_id, | 22 int surface_id, |
(...skipping 28 matching lines...) Expand all Loading... |
51 if (vsync_provider) { | 51 if (vsync_provider) { |
52 vsync_provider->GetVSyncParameters( | 52 vsync_provider->GetVSyncParameters( |
53 base::Bind(&BrowserCompositorOutputSurfaceProxy:: | 53 base::Bind(&BrowserCompositorOutputSurfaceProxy:: |
54 OnUpdateVSyncParametersOnCompositorThread, | 54 OnUpdateVSyncParametersOnCompositorThread, |
55 output_surface_proxy_, | 55 output_surface_proxy_, |
56 surface_id_)); | 56 surface_id_)); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 } // namespace content | 60 } // namespace content |
OLD | NEW |