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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 | 820 |
821 void GpuCommandBufferStub::ReportState() { command_buffer_->UpdateState(); } | 821 void GpuCommandBufferStub::ReportState() { command_buffer_->UpdateState(); } |
822 | 822 |
823 void GpuCommandBufferStub::PutChanged() { | 823 void GpuCommandBufferStub::PutChanged() { |
824 FastSetActiveURL(active_url_, active_url_hash_); | 824 FastSetActiveURL(active_url_, active_url_hash_); |
825 scheduler_->PutChanged(); | 825 scheduler_->PutChanged(); |
826 } | 826 } |
827 | 827 |
828 void GpuCommandBufferStub::OnCreateVideoDecoder( | 828 void GpuCommandBufferStub::OnCreateVideoDecoder( |
829 media::VideoCodecProfile profile, | 829 media::VideoCodecProfile profile, |
| 830 uint32 min_picture_count, |
830 int32 decoder_route_id, | 831 int32 decoder_route_id, |
831 IPC::Message* reply_message) { | 832 IPC::Message* reply_message) { |
832 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder"); | 833 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder"); |
833 GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator( | 834 GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator( |
834 decoder_route_id, this, channel_->io_task_runner()); | 835 decoder_route_id, this, channel_->io_task_runner()); |
835 decoder->Initialize(profile, reply_message); | 836 decoder->Initialize(profile, min_picture_count, reply_message); |
836 // decoder is registered as a DestructionObserver of this stub and will | 837 // decoder is registered as a DestructionObserver of this stub and will |
837 // self-delete during destruction of this stub. | 838 // self-delete during destruction of this stub. |
838 } | 839 } |
839 | 840 |
840 void GpuCommandBufferStub::OnCreateVideoEncoder( | 841 void GpuCommandBufferStub::OnCreateVideoEncoder( |
841 media::VideoFrame::Format input_format, | 842 media::VideoFrame::Format input_format, |
842 const gfx::Size& input_visible_size, | 843 const gfx::Size& input_visible_size, |
843 media::VideoCodecProfile output_profile, | 844 media::VideoCodecProfile output_profile, |
844 uint32 initial_bitrate, | 845 uint32 initial_bitrate, |
845 int32 encoder_route_id, | 846 int32 encoder_route_id, |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 result)); | 1134 result)); |
1134 } | 1135 } |
1135 | 1136 |
1136 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, | 1137 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, |
1137 base::TimeDelta interval) { | 1138 base::TimeDelta interval) { |
1138 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, | 1139 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, |
1139 interval)); | 1140 interval)); |
1140 } | 1141 } |
1141 | 1142 |
1142 } // namespace content | 1143 } // namespace content |
OLD | NEW |