| 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/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/compositor/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" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 IPC_END_MESSAGE_MAP() | 46 IPC_END_MESSAGE_MAP() |
| 47 } | 47 } |
| 48 | 48 |
| 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->OnUpdateVSyncParametersFromGpu(timebase, interval); | 56 surface->OnUpdateVSyncParameters(timebase, interval); |
| 57 } | 57 } |
| 58 } // namespace content | 58 } // namespace content |
| OLD | NEW |