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

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

Issue 9295018: Move audio/video files from content/renderer into content/renderer/media. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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/renderer_gpu_video_decoder_factories.h" 5 #include "content/renderer/media/renderer_gpu_video_decoder_factories.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "content/common/child_thread.h" 9 #include "content/common/child_thread.h"
10 #include "content/renderer/gpu/command_buffer_proxy.h" 10 #include "content/renderer/gpu/command_buffer_proxy.h"
11 #include "content/renderer/gpu/gpu_channel_host.h" 11 #include "content/renderer/gpu/gpu_channel_host.h"
12 #include "content/renderer/gpu/renderer_gl_context.h" 12 #include "content/renderer/gpu/renderer_gl_context.h"
13 #include "gpu/command_buffer/client/gles2_implementation.h" 13 #include "gpu/command_buffer/client/gles2_implementation.h"
14 14
15 RendererGpuVideoDecoderFactories::~RendererGpuVideoDecoderFactories() {} 15 RendererGpuVideoDecoderFactories::~RendererGpuVideoDecoderFactories() {}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 size, &shm, &waiter)); 112 size, &shm, &waiter));
113 waiter.Wait(); 113 waiter.Wait();
114 return shm; 114 return shm;
115 } 115 }
116 116
117 void RendererGpuVideoDecoderFactories::AsyncCreateSharedMemory( 117 void RendererGpuVideoDecoderFactories::AsyncCreateSharedMemory(
118 size_t size, base::SharedMemory** shm, base::WaitableEvent* waiter) { 118 size_t size, base::SharedMemory** shm, base::WaitableEvent* waiter) {
119 *shm = ChildThread::current()->AllocateSharedMemory(size); 119 *shm = ChildThread::current()->AllocateSharedMemory(size);
120 waiter->Signal(); 120 waiter->Signal();
121 } 121 }
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_gpu_video_decoder_factories.h ('k') | content/renderer/media/renderer_webaudiodevice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698