| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/gpu/client/command_buffer_proxy_impl.h" | 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
| 6 | 6 |
| 7 #include <vector> |
| 8 |
| 7 #include "base/callback.h" | 9 #include "base/callback.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
| 10 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 11 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
| 12 #include "content/common/child_process_messages.h" | 14 #include "content/common/child_process_messages.h" |
| 13 #include "content/common/gpu/client/gpu_channel_host.h" | 15 #include "content/common/gpu/client/gpu_channel_host.h" |
| 14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" | 16 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" |
| 15 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" | 17 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" |
| 16 #include "content/common/gpu/gpu_messages.h" | 18 #include "content/common/gpu/gpu_messages.h" |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } | 606 } |
| 605 } | 607 } |
| 606 | 608 |
| 607 void CommandBufferProxyImpl::OnUpdateVSyncParameters(base::TimeTicks timebase, | 609 void CommandBufferProxyImpl::OnUpdateVSyncParameters(base::TimeTicks timebase, |
| 608 base::TimeDelta interval) { | 610 base::TimeDelta interval) { |
| 609 if (!update_vsync_parameters_completion_callback_.is_null()) | 611 if (!update_vsync_parameters_completion_callback_.is_null()) |
| 610 update_vsync_parameters_completion_callback_.Run(timebase, interval); | 612 update_vsync_parameters_completion_callback_.Run(timebase, interval); |
| 611 } | 613 } |
| 612 | 614 |
| 613 } // namespace content | 615 } // namespace content |
| OLD | NEW |