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

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

Issue 7545014: Implement PPAPI VideoDecode out-of-process support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responding to brettw Created 9 years, 4 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
« 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) 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 gfx::GLContext::LosesAllContextsOnContextLost()) { 545 gfx::GLContext::LosesAllContextsOnContextLost()) {
546 channel_->LoseAllContexts(); 546 channel_->LoseAllContexts();
547 } else { 547 } else {
548 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state); 548 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state);
549 msg->set_unblock(true); 549 msg->set_unblock(true);
550 Send(msg); 550 Send(msg);
551 } 551 }
552 } 552 }
553 553
554 void GpuCommandBufferStub::OnCreateVideoDecoder( 554 void GpuCommandBufferStub::OnCreateVideoDecoder(
555 const std::vector<uint32>& configs, 555 const std::vector<int32>& configs,
556 IPC::Message* reply_message) { 556 IPC::Message* reply_message) {
557 video_decoder_.reset( 557 video_decoder_.reset(
558 new GpuVideoDecodeAccelerator(this, route_id_, this)); 558 new GpuVideoDecodeAccelerator(this, route_id_, this));
559 video_decoder_->Initialize(configs, reply_message); 559 video_decoder_->Initialize(configs, reply_message);
560 } 560 }
561 561
562 void GpuCommandBufferStub::OnDestroyVideoDecoder() { 562 void GpuCommandBufferStub::OnDestroyVideoDecoder() {
563 LOG(ERROR) << "GpuCommandBufferStub::OnDestroyVideoDecoder"; 563 LOG(ERROR) << "GpuCommandBufferStub::OnDestroyVideoDecoder";
564 video_decoder_.reset(); 564 video_decoder_.reset();
565 } 565 }
566 566
567 #endif // defined(ENABLE_GPU) 567 #endif // defined(ENABLE_GPU)
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