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

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

Issue 175223003: HW Video: Make media::VideoFrame handle the sync point of the compositor as well as webgl (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: rebase to ToT Created 6 years, 7 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/base/video_frame_unittest.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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // empty. 101 // empty.
102 void EnqueueFrameAndTriggerFrameDelivery( 102 void EnqueueFrameAndTriggerFrameDelivery(
103 const scoped_refptr<VideoFrame>& frame); 103 const scoped_refptr<VideoFrame>& frame);
104 104
105 // Static method is to allow it to run even after GVD is deleted. 105 // Static method is to allow it to run even after GVD is deleted.
106 static void ReleaseMailbox( 106 static void ReleaseMailbox(
107 base::WeakPtr<GpuVideoDecoder> decoder, 107 base::WeakPtr<GpuVideoDecoder> decoder,
108 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, 108 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories,
109 int64 picture_buffer_id, 109 int64 picture_buffer_id,
110 uint32 texture_id, 110 uint32 texture_id,
111 scoped_ptr<gpu::MailboxHolder> mailbox_holder); 111 const std::vector<uint32>& release_sync_points);
112 // Indicate the picture buffer can be reused by the decoder. 112 // Indicate the picture buffer can be reused by the decoder.
113 void ReusePictureBuffer(int64 picture_buffer_id); 113 void ReusePictureBuffer(int64 picture_buffer_id);
114 114
115 void RecordBufferData( 115 void RecordBufferData(
116 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer); 116 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
117 void GetBufferData(int32 id, base::TimeDelta* timetamp, 117 void GetBufferData(int32 id, base::TimeDelta* timetamp,
118 gfx::Rect* visible_rect, gfx::Size* natural_size); 118 gfx::Rect* visible_rect, gfx::Size* natural_size);
119 119
120 void DestroyVDA(); 120 void DestroyVDA();
121 121
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Bound to factories_->GetMessageLoop(). 192 // Bound to factories_->GetMessageLoop().
193 // NOTE: Weak pointers must be invalidated before all other member variables. 193 // NOTE: Weak pointers must be invalidated before all other member variables.
194 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 194 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 196 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
197 }; 197 };
198 198
199 } // namespace media 199 } // namespace media
200 200
201 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 201 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/video_frame_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698