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/browser/aura/browser_compositor_output_surface_proxy.h" | 5 #include "content/browser/compositor/browser_compositor_output_surface_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/aura/browser_compositor_output_surface.h" | 8 #include "content/browser/compositor/browser_compositor_output_surface.h" |
9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
10 #include "content/common/gpu/gpu_messages.h" | 10 #include "content/common/gpu/gpu_messages.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 BrowserCompositorOutputSurfaceProxy::BrowserCompositorOutputSurfaceProxy( | 14 BrowserCompositorOutputSurfaceProxy::BrowserCompositorOutputSurfaceProxy( |
15 IDMap<BrowserCompositorOutputSurface>* surface_map) | 15 IDMap<BrowserCompositorOutputSurface>* surface_map) |
16 : surface_map_(surface_map), | 16 : surface_map_(surface_map), |
17 connected_to_gpu_process_host_id_(0) {} | 17 connected_to_gpu_process_host_id_(0) {} |
18 | 18 |
(...skipping 30 matching lines...) Expand all Loading... |
49 void | 49 void |
50 BrowserCompositorOutputSurfaceProxy::OnUpdateVSyncParametersOnCompositorThread( | 50 BrowserCompositorOutputSurfaceProxy::OnUpdateVSyncParametersOnCompositorThread( |
51 int surface_id, | 51 int surface_id, |
52 base::TimeTicks timebase, | 52 base::TimeTicks timebase, |
53 base::TimeDelta interval) { | 53 base::TimeDelta interval) { |
54 BrowserCompositorOutputSurface* surface = surface_map_->Lookup(surface_id); | 54 BrowserCompositorOutputSurface* surface = surface_map_->Lookup(surface_id); |
55 if (surface) | 55 if (surface) |
56 surface->OnUpdateVSyncParameters(timebase, interval); | 56 surface->OnUpdateVSyncParameters(timebase, interval); |
57 } | 57 } |
58 } // namespace content | 58 } // namespace content |
OLD | NEW |