| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/hash.h" | 8 #include "base/hash.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 } | 876 } |
| 877 | 877 |
| 878 void GpuCommandBufferStub::ReportState() { command_buffer_->UpdateState(); } | 878 void GpuCommandBufferStub::ReportState() { command_buffer_->UpdateState(); } |
| 879 | 879 |
| 880 void GpuCommandBufferStub::PutChanged() { | 880 void GpuCommandBufferStub::PutChanged() { |
| 881 FastSetActiveURL(active_url_, active_url_hash_); | 881 FastSetActiveURL(active_url_, active_url_hash_); |
| 882 scheduler_->PutChanged(); | 882 scheduler_->PutChanged(); |
| 883 } | 883 } |
| 884 | 884 |
| 885 void GpuCommandBufferStub::OnCreateVideoDecoder( | 885 void GpuCommandBufferStub::OnCreateVideoDecoder( |
| 886 media::VideoCodecProfile profile, | 886 const media::VideoDecodeAccelerator::InitParams& params, |
| 887 int32 decoder_route_id, | 887 int32 decoder_route_id, |
| 888 IPC::Message* reply_message) { | 888 IPC::Message* reply_message) { |
| 889 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder"); | 889 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder"); |
| 890 GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator( | 890 GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator( |
| 891 decoder_route_id, this, channel_->io_task_runner()); | 891 decoder_route_id, this, channel_->io_task_runner()); |
| 892 decoder->Initialize(profile, reply_message); | 892 decoder->Initialize(params, reply_message); |
| 893 // decoder is registered as a DestructionObserver of this stub and will | 893 // decoder is registered as a DestructionObserver of this stub and will |
| 894 // self-delete during destruction of this stub. | 894 // self-delete during destruction of this stub. |
| 895 } | 895 } |
| 896 | 896 |
| 897 void GpuCommandBufferStub::OnCreateVideoEncoder( | 897 void GpuCommandBufferStub::OnCreateVideoEncoder( |
| 898 media::VideoPixelFormat input_format, | 898 media::VideoPixelFormat input_format, |
| 899 const gfx::Size& input_visible_size, | 899 const gfx::Size& input_visible_size, |
| 900 media::VideoCodecProfile output_profile, | 900 media::VideoCodecProfile output_profile, |
| 901 uint32 initial_bitrate, | 901 uint32 initial_bitrate, |
| 902 int32 encoder_route_id, | 902 int32 encoder_route_id, |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 result)); | 1258 result)); |
| 1259 } | 1259 } |
| 1260 | 1260 |
| 1261 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, | 1261 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, |
| 1262 base::TimeDelta interval) { | 1262 base::TimeDelta interval) { |
| 1263 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, | 1263 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, |
| 1264 interval)); | 1264 interval)); |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 } // namespace content | 1267 } // namespace content |
| OLD | NEW |