| 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" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 return shm; | 213 return shm; |
| 214 } | 214 } |
| 215 | 215 |
| 216 void RendererGpuVideoDecoderFactories::AsyncCreateSharedMemory( | 216 void RendererGpuVideoDecoderFactories::AsyncCreateSharedMemory( |
| 217 size_t size, base::SharedMemory** shm, base::WaitableEvent* waiter) { | 217 size_t size, base::SharedMemory** shm, base::WaitableEvent* waiter) { |
| 218 DCHECK_EQ(MessageLoop::current(), ChildThread::current()->message_loop()); | 218 DCHECK_EQ(MessageLoop::current(), ChildThread::current()->message_loop()); |
| 219 *shm = ChildThread::current()->AllocateSharedMemory(size); | 219 *shm = ChildThread::current()->AllocateSharedMemory(size); |
| 220 waiter->Signal(); | 220 waiter->Signal(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 scoped_refptr<base::MessageLoopProxy> |
| 224 RendererGpuVideoDecoderFactories::GetMessageLoop() { |
| 225 return message_loop_; |
| 226 } |
| 227 |
| 223 } // namespace content | 228 } // namespace content |
| OLD | NEW |