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

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: Addressed comments 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
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 } 874 }
875 875
876 void GpuCommandBufferStub::ReportState() { command_buffer_->UpdateState(); } 876 void GpuCommandBufferStub::ReportState() { command_buffer_->UpdateState(); }
877 877
878 void GpuCommandBufferStub::PutChanged() { 878 void GpuCommandBufferStub::PutChanged() {
879 FastSetActiveURL(active_url_, active_url_hash_); 879 FastSetActiveURL(active_url_, active_url_hash_);
880 scheduler_->PutChanged(); 880 scheduler_->PutChanged();
881 } 881 }
882 882
883 void GpuCommandBufferStub::OnCreateVideoDecoder( 883 void GpuCommandBufferStub::OnCreateVideoDecoder(
884 media::VideoCodecProfile profile, 884 const media::VideoDecodeAccelerator::Config& config,
885 int32 decoder_route_id, 885 int32 decoder_route_id,
886 IPC::Message* reply_message) { 886 IPC::Message* reply_message) {
887 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder"); 887 TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnCreateVideoDecoder");
888 GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator( 888 GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator(
889 decoder_route_id, this, channel_->io_task_runner()); 889 decoder_route_id, this, channel_->io_task_runner());
890 decoder->Initialize(profile, reply_message); 890 decoder->Initialize(config, reply_message);
891 // decoder is registered as a DestructionObserver of this stub and will 891 // decoder is registered as a DestructionObserver of this stub and will
892 // self-delete during destruction of this stub. 892 // self-delete during destruction of this stub.
893 } 893 }
894 894
895 void GpuCommandBufferStub::OnCreateVideoEncoder( 895 void GpuCommandBufferStub::OnCreateVideoEncoder(
896 media::VideoPixelFormat input_format, 896 media::VideoPixelFormat input_format,
897 const gfx::Size& input_visible_size, 897 const gfx::Size& input_visible_size,
898 media::VideoCodecProfile output_profile, 898 media::VideoCodecProfile output_profile,
899 uint32 initial_bitrate, 899 uint32 initial_bitrate,
900 int32 encoder_route_id, 900 int32 encoder_route_id,
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 result)); 1251 result));
1252 } 1252 }
1253 1253
1254 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1254 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1255 base::TimeDelta interval) { 1255 base::TimeDelta interval) {
1256 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1256 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1257 interval)); 1257 interval));
1258 } 1258 }
1259 1259
1260 } // namespace content 1260 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698