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

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

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add VDA and gpu_factories mocks. Update unittest. Created 7 years, 6 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // (except for DeleteTexture, which is fire-and-forget). 75 // (except for DeleteTexture, which is fire-and-forget).
76 // AsyncCreateSharedMemory runs on the renderer thread and the rest run on 76 // AsyncCreateSharedMemory runs on the renderer thread and the rest run on
77 // |message_loop_|. 77 // |message_loop_|.
78 // The AsyncCreateVideoDecodeAccelerator returns its output in the vda_ 78 // The AsyncCreateVideoDecodeAccelerator returns its output in the vda_
79 // member. 79 // member.
80 void AsyncCreateVideoDecodeAccelerator( 80 void AsyncCreateVideoDecodeAccelerator(
81 media::VideoCodecProfile profile, 81 media::VideoCodecProfile profile,
82 media::VideoDecodeAccelerator::Client* client); 82 media::VideoDecodeAccelerator::Client* client);
83 void AsyncCreateTextures(int32 count, const gfx::Size& size, 83 void AsyncCreateTextures(int32 count, const gfx::Size& size,
84 uint32 texture_target); 84 uint32 texture_target);
85 void SyncCreateTextures(int32 count, const gfx::Size& size,
Ami GONE FROM CHROMIUM 2013/05/29 21:11:46 Undefined/unused?
wuchengli 2013/06/10 12:33:42 Removed.
86 uint32 texture_target);
85 void AsyncDeleteTexture(uint32 texture_id); 87 void AsyncDeleteTexture(uint32 texture_id);
86 void AsyncReadPixels(uint32 texture_id, uint32 texture_target, 88 void AsyncReadPixels(uint32 texture_id, uint32 texture_target,
87 const gfx::Size& size); 89 const gfx::Size& size);
88 void AsyncCreateSharedMemory(size_t size); 90 void AsyncCreateSharedMemory(size_t size);
89 void AsyncDestroyVideoDecodeAccelerator(); 91 void AsyncDestroyVideoDecodeAccelerator();
90 92
91 scoped_refptr<base::MessageLoopProxy> message_loop_; 93 scoped_refptr<base::MessageLoopProxy> message_loop_;
92 scoped_refptr<GpuChannelHost> gpu_channel_host_; 94 scoped_refptr<GpuChannelHost> gpu_channel_host_;
93 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_; 95 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context_;
94 96
(...skipping 21 matching lines...) Expand all
116 118
117 // Textures returned by the CreateTexture() function. 119 // Textures returned by the CreateTexture() function.
118 std::vector<uint32> created_textures_; 120 std::vector<uint32> created_textures_;
119 121
120 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories); 122 DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories);
121 }; 123 };
122 124
123 } // namespace content 125 } // namespace content
124 126
125 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_ 127 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698