| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_accelerator_factories.h" | 5 #include "content/renderer/media/renderer_gpu_video_accelerator_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 "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/unguessable_token.h" | 13 #include "base/unguessable_token.h" |
| 14 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
| 15 #include "content/child/child_gpu_memory_buffer_manager.h" | |
| 16 #include "content/child/child_thread_impl.h" | 15 #include "content/child/child_thread_impl.h" |
| 17 #include "content/common/gpu/client/context_provider_command_buffer.h" | 16 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 18 #include "content/renderer/render_thread_impl.h" | 17 #include "content/renderer/render_thread_impl.h" |
| 19 #include "gpu/command_buffer/client/gles2_interface.h" | 18 #include "gpu/command_buffer/client/gles2_interface.h" |
| 20 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 19 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
| 21 #include "gpu/ipc/client/gpu_channel_host.h" | 20 #include "gpu/ipc/client/gpu_channel_host.h" |
| 22 #include "media/gpu/gpu_video_accelerator_util.h" | 21 #include "media/gpu/gpu_video_accelerator_util.h" |
| 23 #include "media/gpu/ipc/client/gpu_video_decode_accelerator_host.h" | 22 #include "media/gpu/ipc/client/gpu_video_decode_accelerator_host.h" |
| 24 #include "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" | 23 #include "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" |
| 25 #include "media/gpu/ipc/common/media_messages.h" | 24 #include "media/gpu/ipc/common/media_messages.h" |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 context_provider_refptr_ = nullptr; | 330 context_provider_refptr_ = nullptr; |
| 332 } | 331 } |
| 333 | 332 |
| 334 scoped_refptr<ContextProviderCommandBuffer> | 333 scoped_refptr<ContextProviderCommandBuffer> |
| 335 RendererGpuVideoAcceleratorFactories::ContextProviderMainThread() { | 334 RendererGpuVideoAcceleratorFactories::ContextProviderMainThread() { |
| 336 DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); | 335 DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); |
| 337 return context_provider_refptr_; | 336 return context_provider_refptr_; |
| 338 } | 337 } |
| 339 | 338 |
| 340 } // namespace content | 339 } // namespace content |
| OLD | NEW |