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

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: responses to ddorwin and piman 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
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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 gfx::GLContext::LosesAllContextsOnContextLost()) { 540 gfx::GLContext::LosesAllContextsOnContextLost()) {
541 channel_->LoseAllContexts(); 541 channel_->LoseAllContexts();
542 } else { 542 } else {
543 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state); 543 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state);
544 msg->set_unblock(true); 544 msg->set_unblock(true);
545 Send(msg); 545 Send(msg);
546 } 546 }
547 } 547 }
548 548
549 void GpuCommandBufferStub::OnCreateVideoDecoder( 549 void GpuCommandBufferStub::OnCreateVideoDecoder(
550 const std::vector<uint32>& configs, 550 const std::vector<int32>& configs,
551 IPC::Message* reply_message) { 551 IPC::Message* reply_message) {
552 video_decoder_.reset( 552 video_decoder_.reset(
553 new GpuVideoDecodeAccelerator(this, route_id_, this)); 553 new GpuVideoDecodeAccelerator(this, route_id_, this));
554 video_decoder_->Initialize(configs, reply_message); 554 video_decoder_->Initialize(configs, reply_message);
555 } 555 }
556 556
557 void GpuCommandBufferStub::OnDestroyVideoDecoder() { 557 void GpuCommandBufferStub::OnDestroyVideoDecoder() {
558 LOG(ERROR) << "GpuCommandBufferStub::OnDestroyVideoDecoder"; 558 LOG(ERROR) << "GpuCommandBufferStub::OnDestroyVideoDecoder";
559 video_decoder_.reset(); 559 video_decoder_.reset();
560 } 560 }
561 561
562 #endif // defined(ENABLE_GPU) 562 #endif // defined(ENABLE_GPU)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698