Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2061)

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698