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

Side by Side Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.cc

Issue 7292010: Delete GpuVideoService and move GpuVideoDecodeAccelerator ownership to stubs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months 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 | Annotate | Revision Log
« content/content_common.gypi ('K') | « content/content_common.gypi ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/gpu/gpu_video_decode_accelerator_host.h" 5 #include "content/renderer/gpu/gpu_video_decode_accelerator_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Rearrange data for IPC command. 127 // Rearrange data for IPC command.
128 std::vector<int32> buffer_ids; 128 std::vector<int32> buffer_ids;
129 std::vector<uint32> texture_ids; 129 std::vector<uint32> texture_ids;
130 std::vector<gfx::Size> sizes; 130 std::vector<gfx::Size> sizes;
131 for (uint32 i = 0; i < buffers.size(); i++) { 131 for (uint32 i = 0; i < buffers.size(); i++) {
132 const media::GLESBuffer& buffer = buffers[i]; 132 const media::GLESBuffer& buffer = buffers[i];
133 texture_ids.push_back(buffer.texture_id()); 133 texture_ids.push_back(buffer.texture_id());
134 buffer_ids.push_back(buffer.id()); 134 buffer_ids.push_back(buffer.id());
135 sizes.push_back(buffer.size()); 135 sizes.push_back(buffer.size());
136 } 136 }
137 if (!ipc_sender_->Send(new AcceleratedVideoDecoderMsg_AssignTextures( 137 if (!ipc_sender_->Send(new AcceleratedVideoDecoderMsg_AssignGLESBuffers(
138 decoder_id_, SyncTokens(), buffer_ids, texture_ids, sizes))) { 138 decoder_id_, SyncTokens(), buffer_ids, texture_ids, sizes))) {
139 LOG(ERROR) << "Send(AcceleratedVideoDecoderMsg_AssignGLESBuffers) failed"; 139 LOG(ERROR) << "Send(AcceleratedVideoDecoderMsg_AssignGLESBuffers) failed";
140 } 140 }
141 } 141 }
142 142
143 void GpuVideoDecodeAcceleratorHost::AssignSysmemBuffers( 143 void GpuVideoDecodeAcceleratorHost::AssignSysmemBuffers(
144 const std::vector<media::SysmemBuffer>& buffers) { 144 const std::vector<media::SysmemBuffer>& buffers) {
145 DCHECK(CalledOnValidThread()); 145 DCHECK(CalledOnValidThread());
146 // TODO(vrk): Implement. 146 // TODO(vrk): Implement.
147 NOTIMPLEMENTED(); 147 NOTIMPLEMENTED();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 void GpuVideoDecodeAcceleratorHost::OnEndOfStream() { 235 void GpuVideoDecodeAcceleratorHost::OnEndOfStream() {
236 DCHECK(CalledOnValidThread()); 236 DCHECK(CalledOnValidThread());
237 client_->NotifyEndOfStream(); 237 client_->NotifyEndOfStream();
238 } 238 }
239 239
240 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { 240 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) {
241 DCHECK(CalledOnValidThread()); 241 DCHECK(CalledOnValidThread());
242 client_->NotifyError( 242 client_->NotifyError(
243 static_cast<media::VideoDecodeAccelerator::Error>(error)); 243 static_cast<media::VideoDecodeAccelerator::Error>(error));
244 } 244 }
OLDNEW
« content/content_common.gypi ('K') | « content/content_common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698