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

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

Issue 1680213002: Start using deferred rendering for WebView on L. Base URL: https://chromium.googlesource.com/chromium/src.git@measure_copy
Patch Set: cleanup Created 4 years, 9 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 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Set during ProvidePictureBuffers(), used for checking and implementing 213 // Set during ProvidePictureBuffers(), used for checking and implementing
214 // HasAvailableOutputFrames(). 214 // HasAvailableOutputFrames().
215 int available_pictures_; 215 int available_pictures_;
216 216
217 // If true, the client cannot expect the VDA to produce any new decoded 217 // If true, the client cannot expect the VDA to produce any new decoded
218 // frames, until it returns all PictureBuffers it may be holding back to the 218 // frames, until it returns all PictureBuffers it may be holding back to the
219 // VDA. In other words, the VDA may require all PictureBuffers to be able to 219 // VDA. In other words, the VDA may require all PictureBuffers to be able to
220 // proceed with decoding the next frame. 220 // proceed with decoding the next frame.
221 bool needs_all_picture_buffers_to_decode_; 221 bool needs_all_picture_buffers_to_decode_;
222 222
223 // If true, then the resulting video frame will have COPY_REQUIRED set.
224 bool copy_required_;
225
223 // Bound to factories_->GetMessageLoop(). 226 // Bound to factories_->GetMessageLoop().
224 // NOTE: Weak pointers must be invalidated before all other member variables. 227 // NOTE: Weak pointers must be invalidated before all other member variables.
225 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 228 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
226 229
227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 230 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
228 }; 231 };
229 232
230 } // namespace media 233 } // namespace media
231 234
232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 235 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698