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

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

Issue 2052103002: Enable deferred rendering strategy for Android WebView for Spitzer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spitzer-aw-disable-tests
Patch Set: Addressed comments, fixed Windows compilation Created 4 years, 5 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 | « no previous file | 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // frames, until it returns all PictureBuffers it may be holding back to the 228 // frames, until it returns all PictureBuffers it may be holding back to the
229 // VDA. In other words, the VDA may require all PictureBuffers to be able to 229 // VDA. In other words, the VDA may require all PictureBuffers to be able to
230 // proceed with decoding the next frame. 230 // proceed with decoding the next frame.
231 bool needs_all_picture_buffers_to_decode_; 231 bool needs_all_picture_buffers_to_decode_;
232 232
233 // If true, then the VDA supports deferred initialization via 233 // If true, then the VDA supports deferred initialization via
234 // NotifyInitializationComplete. Otherwise, it will return initialization 234 // NotifyInitializationComplete. Otherwise, it will return initialization
235 // status synchronously from VDA::Initialize. 235 // status synchronously from VDA::Initialize.
236 bool supports_deferred_initialization_; 236 bool supports_deferred_initialization_;
237 237
238 // This flag translates to COPY_REQUIRED flag for each frame.
239 bool requires_texture_copy_;
240
238 // Bound to factories_->GetMessageLoop(). 241 // Bound to factories_->GetMessageLoop().
239 // NOTE: Weak pointers must be invalidated before all other member variables. 242 // NOTE: Weak pointers must be invalidated before all other member variables.
240 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 243 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
241 244
242 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 245 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
243 }; 246 };
244 247
245 } // namespace media 248 } // namespace media
246 249
247 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 250 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698