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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 1 month 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 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "media/filters/gpu_video_decoder.h" 12 #include "media/filters/gpu_video_decoder.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 14
15 class ContentGLContext;
16 class GpuChannelHost;
17 class WebGraphicsContext3DCommandBufferImpl;
18 namespace base { 15 namespace base {
19 class WaitableEvent; 16 class WaitableEvent;
20 } 17 }
21 18
22 namespace content { 19 namespace content {
20 class GpuChannelHost;
21 class WebGraphicsContext3DCommandBufferImpl;
23 22
24 // Glue code to expose functionality needed by media::GpuVideoDecoder to 23 // Glue code to expose functionality needed by media::GpuVideoDecoder to
25 // RenderViewImpl. This class is entirely an implementation detail of 24 // RenderViewImpl. This class is entirely an implementation detail of
26 // RenderViewImpl and only has its own header to allow extraction of its 25 // RenderViewImpl and only has its own header to allow extraction of its
27 // implementation from render_view_impl.cc which is already far too large. 26 // implementation from render_view_impl.cc which is already far too large.
28 // 27 //
29 // The public methods of the class can be called from any thread, and are 28 // The public methods of the class can be called from any thread, and are
30 // internally trampolined to the appropriate thread. GPU/GL-related calls go to 29 // internally trampolined to the appropriate thread. GPU/GL-related calls go to
31 // the constructor-argument loop (mostly that's the compositor thread, or the 30 // the constructor-argument loop (mostly that's the compositor thread, or the
32 // renderer thread if threaded compositing is disabled), and shmem-related calls 31 // renderer thread if threaded compositing is disabled), and shmem-related calls
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 87
89 scoped_refptr<base::MessageLoopProxy> message_loop_; 88 scoped_refptr<base::MessageLoopProxy> message_loop_;
90 scoped_refptr<GpuChannelHost> gpu_channel_host_; 89 scoped_refptr<GpuChannelHost> gpu_channel_host_;
91 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_; 90 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_;
92 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); 91 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories);
93 }; 92 };
94 93
95 } // namespace content 94 } // namespace content
96 95
97 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ 96 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/stream_texture_host_android.h ('k') | content/renderer/media/stream_texture_factory_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698