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/renderer/media/renderer_gpu_video_decoder_factories.h" | 5 #include "content/renderer/media/renderer_gpu_video_decoder_factories.h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
8 #include <GLES2/gl2ext.h> | 8 #include <GLES2/gl2ext.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "content/common/child_thread.h" | 11 #include "content/child/child_thread.h" |
12 #include "content/common/gpu/client/gpu_channel_host.h" | 12 #include "content/common/gpu/client/gpu_channel_host.h" |
13 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 13 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
14 #include "gpu/command_buffer/client/gles2_implementation.h" | 14 #include "gpu/command_buffer/client/gles2_implementation.h" |
15 #include "gpu/ipc/command_buffer_proxy.h" | 15 #include "gpu/ipc/command_buffer_proxy.h" |
16 #include "third_party/skia/include/core/SkPixelRef.h" | 16 #include "third_party/skia/include/core/SkPixelRef.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 RendererGpuVideoDecoderFactories::~RendererGpuVideoDecoderFactories() {} | 20 RendererGpuVideoDecoderFactories::~RendererGpuVideoDecoderFactories() {} |
21 RendererGpuVideoDecoderFactories::RendererGpuVideoDecoderFactories( | 21 RendererGpuVideoDecoderFactories::RendererGpuVideoDecoderFactories( |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 return aborted_waiter_.IsSignaled(); | 256 return aborted_waiter_.IsSignaled(); |
257 } | 257 } |
258 | 258 |
259 void RendererGpuVideoDecoderFactories::AsyncDestroyVideoDecodeAccelerator() { | 259 void RendererGpuVideoDecoderFactories::AsyncDestroyVideoDecodeAccelerator() { |
260 // OK to release because Destroy() will delete the VDA instance. | 260 // OK to release because Destroy() will delete the VDA instance. |
261 if (vda_) | 261 if (vda_) |
262 vda_.release()->Destroy(); | 262 vda_.release()->Destroy(); |
263 } | 263 } |
264 | 264 |
265 } // namespace content | 265 } // namespace content |
OLD | NEW |