| OLD | NEW |
| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 gfx::GLContext::LosesAllContextsOnContextLost()) { | 557 gfx::GLContext::LosesAllContextsOnContextLost()) { |
| 558 channel_->LoseAllContexts(); | 558 channel_->LoseAllContexts(); |
| 559 } else { | 559 } else { |
| 560 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state); | 560 IPC::Message* msg = new GpuCommandBufferMsg_UpdateState(route_id_, state); |
| 561 msg->set_unblock(true); | 561 msg->set_unblock(true); |
| 562 Send(msg); | 562 Send(msg); |
| 563 } | 563 } |
| 564 } | 564 } |
| 565 | 565 |
| 566 void GpuCommandBufferStub::OnCreateVideoDecoder( | 566 void GpuCommandBufferStub::OnCreateVideoDecoder( |
| 567 const std::vector<uint32>& configs, | 567 const std::vector<int32>& configs, |
| 568 IPC::Message* reply_message) { | 568 IPC::Message* reply_message) { |
| 569 video_decoder_.reset( | 569 video_decoder_.reset( |
| 570 new GpuVideoDecodeAccelerator(this, route_id_, this)); | 570 new GpuVideoDecodeAccelerator(this, route_id_, this)); |
| 571 video_decoder_->Initialize(configs, reply_message); | 571 video_decoder_->Initialize(configs, reply_message); |
| 572 } | 572 } |
| 573 | 573 |
| 574 void GpuCommandBufferStub::OnDestroyVideoDecoder() { | 574 void GpuCommandBufferStub::OnDestroyVideoDecoder() { |
| 575 LOG(ERROR) << "GpuCommandBufferStub::OnDestroyVideoDecoder"; | 575 LOG(ERROR) << "GpuCommandBufferStub::OnDestroyVideoDecoder"; |
| 576 video_decoder_.reset(); | 576 video_decoder_.reset(); |
| 577 } | 577 } |
| 578 | 578 |
| 579 #endif // defined(ENABLE_GPU) | 579 #endif // defined(ENABLE_GPU) |
| OLD | NEW |