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

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

Issue 11468033: Vanquish the remnants of media::MessageLoopFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 std::vector<uint32>* texture_ids, 48 std::vector<uint32>* texture_ids,
49 uint32 texture_target) OVERRIDE; 49 uint32 texture_target) OVERRIDE;
50 50
51 virtual void DeleteTexture(uint32 texture_id) OVERRIDE; 51 virtual void DeleteTexture(uint32 texture_id) OVERRIDE;
52 52
53 virtual void ReadPixels(uint32 texture_id, uint32 texture_target, 53 virtual void ReadPixels(uint32 texture_id, uint32 texture_target,
54 const gfx::Size& size, void* pixels) OVERRIDE; 54 const gfx::Size& size, void* pixels) OVERRIDE;
55 55
56 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; 56 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE;
57 57
58 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() OVERRIDE;
jam 2012/12/10 04:23:03 nit: convention is no blank lines between overridd
scherkus (not reviewing) 2012/12/21 22:41:39 Done.
59
58 protected: 60 protected:
59 friend class base::RefCountedThreadSafe<RendererGpuVideoDecoderFactories>; 61 friend class base::RefCountedThreadSafe<RendererGpuVideoDecoderFactories>;
60 virtual ~RendererGpuVideoDecoderFactories(); 62 virtual ~RendererGpuVideoDecoderFactories();
61 63
62 private: 64 private:
63 // Helper for the constructor to acquire the ContentGLContext on the 65 // Helper for the constructor to acquire the ContentGLContext on the
64 // compositor thread (when it is enabled). 66 // compositor thread (when it is enabled).
65 void AsyncGetContext(WebGraphicsContext3DCommandBufferImpl* context, 67 void AsyncGetContext(WebGraphicsContext3DCommandBufferImpl* context,
66 base::WaitableEvent* waiter); 68 base::WaitableEvent* waiter);
67 69
(...skipping 19 matching lines...) Expand all
87 89
88 scoped_refptr<base::MessageLoopProxy> message_loop_; 90 scoped_refptr<base::MessageLoopProxy> message_loop_;
89 scoped_refptr<GpuChannelHost> gpu_channel_host_; 91 scoped_refptr<GpuChannelHost> gpu_channel_host_;
90 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_; 92 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_;
91 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); 93 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories);
92 }; 94 };
93 95
94 } // namespace content 96 } // namespace content
95 97
96 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ 98 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698