| 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) |
| OLD | NEW |