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

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: Focus on this CL's goal and remove wrong change Created 6 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // empty. 103 // empty.
104 void EnqueueFrameAndTriggerFrameDelivery( 104 void EnqueueFrameAndTriggerFrameDelivery(
105 const scoped_refptr<VideoFrame>& frame); 105 const scoped_refptr<VideoFrame>& frame);
106 106
107 // Static method is to allow it to run even after GVD is deleted. 107 // Static method is to allow it to run even after GVD is deleted.
108 static void ReleaseMailbox( 108 static void ReleaseMailbox(
109 base::WeakPtr<GpuVideoDecoder> decoder, 109 base::WeakPtr<GpuVideoDecoder> decoder,
110 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, 110 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories,
111 int64 picture_buffer_id, 111 int64 picture_buffer_id,
112 uint32 texture_id, 112 uint32 texture_id,
113 scoped_ptr<gpu::MailboxHolder> mailbox_holder); 113 const std::vector<uint32>& release_sync_points);
114 // Indicate the picture buffer can be reused by the decoder. 114 // Indicate the picture buffer can be reused by the decoder.
115 void ReusePictureBuffer(int64 picture_buffer_id); 115 void ReusePictureBuffer(int64 picture_buffer_id);
116 116
117 void RecordBufferData( 117 void RecordBufferData(
118 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer); 118 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
119 void GetBufferData(int32 id, base::TimeDelta* timetamp, 119 void GetBufferData(int32 id, base::TimeDelta* timetamp,
120 gfx::Rect* visible_rect, gfx::Size* natural_size); 120 gfx::Rect* visible_rect, gfx::Size* natural_size);
121 121
122 void DestroyVDA(); 122 void DestroyVDA();
123 123
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Bound to factories_->GetMessageLoop(). 194 // Bound to factories_->GetMessageLoop().
195 // NOTE: Weak pointers must be invalidated before all other member variables. 195 // NOTE: Weak pointers must be invalidated before all other member variables.
196 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; 196 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
197 197
198 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); 198 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder);
199 }; 199 };
200 200
201 } // namespace media 201 } // namespace media
202 202
203 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ 203 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698