| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/gpu/media/gpu_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/gpu_video_decode_accelerator.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "content/common/gpu/media/v4l2_video_device.h" | 33 #include "content/common/gpu/media/v4l2_video_device.h" |
| 34 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) | 34 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
| 35 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" | 35 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" |
| 36 #include "ui/gl/gl_implementation.h" | 36 #include "ui/gl/gl_implementation.h" |
| 37 #elif defined(USE_OZONE) | 37 #elif defined(USE_OZONE) |
| 38 #include "media/ozone/media_ozone_platform.h" | 38 #include "media/ozone/media_ozone_platform.h" |
| 39 #elif defined(OS_ANDROID) | 39 #elif defined(OS_ANDROID) |
| 40 #include "content/common/gpu/media/android_video_decode_accelerator.h" | 40 #include "content/common/gpu/media/android_video_decode_accelerator.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #include "ui/gfx/size.h" | 43 #include "ui/gfx/geometry/size.h" |
| 44 | 44 |
| 45 namespace content { | 45 namespace content { |
| 46 | 46 |
| 47 static bool MakeDecoderContextCurrent( | 47 static bool MakeDecoderContextCurrent( |
| 48 const base::WeakPtr<GpuCommandBufferStub> stub) { | 48 const base::WeakPtr<GpuCommandBufferStub> stub) { |
| 49 if (!stub) { | 49 if (!stub) { |
| 50 DLOG(ERROR) << "Stub is gone; won't MakeCurrent()."; | 50 DLOG(ERROR) << "Stub is gone; won't MakeCurrent()."; |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 | 53 |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 return stub_->channel()->Send(message); | 505 return stub_->channel()->Send(message); |
| 506 } | 506 } |
| 507 | 507 |
| 508 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, | 508 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, |
| 509 bool succeeded) { | 509 bool succeeded) { |
| 510 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); | 510 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); |
| 511 Send(message); | 511 Send(message); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace content | 514 } // namespace content |
| OLD | NEW |