Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: content/renderer/media/renderer_gpu_video_decoder_factories.cc

Issue 11468033: Vanquish the remnants of media::MessageLoopFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_gpu_video_decoder_factories.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698