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

Side by Side Diff: media/filters/gpu_video_decoder.h

Issue 2892083002: Send enter / exit fullscreen signal to AVDA (Closed)
Patch Set: rebased. Created 3 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
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const VideoDecodeAccelerator::Capabilities& capabilities, 148 const VideoDecodeAccelerator::Capabilities& capabilities,
149 VideoCodecProfile profile, 149 VideoCodecProfile profile,
150 const gfx::Size& coded_size, 150 const gfx::Size& coded_size,
151 bool is_encrypted); 151 bool is_encrypted);
152 152
153 // Assert the contract that this class is operated on the right thread. 153 // Assert the contract that this class is operated on the right thread.
154 void DCheckGpuVideoAcceleratorFactoriesTaskRunnerIsCurrent() const; 154 void DCheckGpuVideoAcceleratorFactoriesTaskRunnerIsCurrent() const;
155 155
156 // Provided to the |request_overlay_info_cb_| callback given during 156 // Provided to the |request_overlay_info_cb_| callback given during
157 // construction. Sets or changes the output surface. 157 // construction. Sets or changes the output surface.
158 void OnOverlayInfoAvailable( 158 void OnOverlayInfoAvailable(const OverlayInfo& overlay_info);
159 int surface_id,
160 const base::Optional<base::UnguessableToken>& routing_token);
161 159
162 // If the VDA supports external surfaces, we must wait for the surface before 160 // If the VDA supports external surfaces, we must wait for the surface before
163 // completing initialization. This will be called by OnSurfaceAvailable() once 161 // completing initialization. This will be called by OnSurfaceAvailable() once
164 // the surface is known or immediately by Initialize() if external surfaces 162 // the surface is known or immediately by Initialize() if external surfaces
165 // are unsupported. 163 // are unsupported.
166 void CompleteInitialization( 164 void CompleteInitialization(const OverlayInfo& overlay_info);
167 int surface_id,
168 const base::Optional<base::UnguessableToken>& token);
169 165
170 bool needs_bitstream_conversion_; 166 bool needs_bitstream_conversion_;
171 167
172 GpuVideoAcceleratorFactories* factories_; 168 GpuVideoAcceleratorFactories* factories_;
173 169
174 // For requesting a suface to render to. If this is null the VDA will return 170 // For requesting a suface to render to. If this is null the VDA will return
175 // normal video frames and not render them to a surface. 171 // normal video frames and not render them to a surface.
176 RequestOverlayInfoCB request_overlay_info_cb_; 172 RequestOverlayInfoCB request_overlay_info_cb_;
177 173
178 MediaLog* media_log_; 174 MediaLog* media_log_;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // Bound to factories_->GetMessageLoop(). 255 // Bound to factories_->GetMessageLoop().
260 // NOTE: Weak pointers must be invalidated before all other member variables. 256 // NOTE: Weak pointers must be invalidated before all other member variables.
261 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 257 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
262 258
263 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 259 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
264 }; 260 };
265 261
266 } // namespace media 262 } // namespace media
267 263
268 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 264 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698