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

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

Issue 170843004: Pass Client pointer in Initialize() for VDA/VEA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 48f212da fischman@ comments. Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ACCELERATOR_FACTORIES_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 public: 38 public:
39 // Takes a ref on |gpu_channel_host| and tests |context| for loss before each 39 // Takes a ref on |gpu_channel_host| and tests |context| for loss before each
40 // use. Safe to call from any thread. 40 // use. Safe to call from any thread.
41 RendererGpuVideoAcceleratorFactories( 41 RendererGpuVideoAcceleratorFactories(
42 GpuChannelHost* gpu_channel_host, 42 GpuChannelHost* gpu_channel_host,
43 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy, 43 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy,
44 const scoped_refptr<ContextProviderCommandBuffer>& context_provider); 44 const scoped_refptr<ContextProviderCommandBuffer>& context_provider);
45 45
46 // media::GpuVideoAcceleratorFactories implementation. 46 // media::GpuVideoAcceleratorFactories implementation.
47 virtual scoped_ptr<media::VideoDecodeAccelerator> 47 virtual scoped_ptr<media::VideoDecodeAccelerator>
48 CreateVideoDecodeAccelerator( 48 CreateVideoDecodeAccelerator(media::VideoCodecProfile profile) OVERRIDE;
49 media::VideoCodecProfile profile,
50 media::VideoDecodeAccelerator::Client* client) OVERRIDE;
51 virtual scoped_ptr<media::VideoEncodeAccelerator> 49 virtual scoped_ptr<media::VideoEncodeAccelerator>
52 CreateVideoEncodeAccelerator( 50 CreateVideoEncodeAccelerator() OVERRIDE;
53 media::VideoEncodeAccelerator::Client* client) OVERRIDE;
54 // Creates textures and produces them into mailboxes. Returns a sync point to 51 // Creates textures and produces them into mailboxes. Returns a sync point to
55 // wait on before using the mailboxes, or 0 on failure. 52 // wait on before using the mailboxes, or 0 on failure.
56 virtual uint32 CreateTextures(int32 count, 53 virtual uint32 CreateTextures(int32 count,
57 const gfx::Size& size, 54 const gfx::Size& size,
58 std::vector<uint32>* texture_ids, 55 std::vector<uint32>* texture_ids,
59 std::vector<gpu::Mailbox>* texture_mailboxes, 56 std::vector<gpu::Mailbox>* texture_mailboxes,
60 uint32 texture_target) OVERRIDE; 57 uint32 texture_target) OVERRIDE;
61 virtual void DeleteTexture(uint32 texture_id) OVERRIDE; 58 virtual void DeleteTexture(uint32 texture_id) OVERRIDE;
62 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; 59 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE;
63 virtual void ReadPixels(uint32 texture_id, 60 virtual void ReadPixels(uint32 texture_id,
(...skipping 17 matching lines...) Expand all
81 78
82 // For sending requests to allocate shared memory in the Browser process. 79 // For sending requests to allocate shared memory in the Browser process.
83 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 80 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
84 81
85 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 82 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
86 }; 83 };
87 84
88 } // namespace content 85 } // namespace content
89 86
90 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 87 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698