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

Side by Side Diff: media/base/video_frame.h

Issue 229453004: Rename VideoFrame::{Get,Set}Timestamp() to {set_}timestamp(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile failure Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/pepper_video_source_host.cc ('k') | media/base/video_frame.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_BASE_VIDEO_FRAME_H_ 5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_
6 #define MEDIA_BASE_VIDEO_FRAME_H_ 6 #define MEDIA_BASE_VIDEO_FRAME_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/md5.h" 9 #include "base/md5.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Only valid to call if this is a NATIVE_TEXTURE frame. Before using the 205 // Only valid to call if this is a NATIVE_TEXTURE frame. Before using the
206 // mailbox, the caller must wait for the included sync point. 206 // mailbox, the caller must wait for the included sync point.
207 gpu::MailboxHolder* mailbox_holder() const; 207 gpu::MailboxHolder* mailbox_holder() const;
208 208
209 // Returns the shared-memory handle, if present 209 // Returns the shared-memory handle, if present
210 base::SharedMemoryHandle shared_memory_handle() const; 210 base::SharedMemoryHandle shared_memory_handle() const;
211 211
212 // Returns true if this VideoFrame represents the end of the stream. 212 // Returns true if this VideoFrame represents the end of the stream.
213 bool end_of_stream() const { return end_of_stream_; } 213 bool end_of_stream() const { return end_of_stream_; }
214 214
215 base::TimeDelta GetTimestamp() const { 215 base::TimeDelta timestamp() const {
216 return timestamp_; 216 return timestamp_;
217 } 217 }
218 void SetTimestamp(const base::TimeDelta& timestamp) { 218 void set_timestamp(const base::TimeDelta& timestamp) {
219 timestamp_ = timestamp; 219 timestamp_ = timestamp;
220 } 220 }
221 221
222 // Used to keep a running hash of seen frames. Expects an initialized MD5 222 // Used to keep a running hash of seen frames. Expects an initialized MD5
223 // context. Calls MD5Update with the context and the contents of the frame. 223 // context. Calls MD5Update with the context and the contents of the frame.
224 void HashFrameForTesting(base::MD5Context* context); 224 void HashFrameForTesting(base::MD5Context* context);
225 225
226 private: 226 private:
227 friend class base::RefCountedThreadSafe<VideoFrame>; 227 friend class base::RefCountedThreadSafe<VideoFrame>;
228 // Clients must use the static CreateFrame() method to create a new frame. 228 // Clients must use the static CreateFrame() method to create a new frame.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 base::TimeDelta timestamp_; 279 base::TimeDelta timestamp_;
280 280
281 const bool end_of_stream_; 281 const bool end_of_stream_;
282 282
283 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 283 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
284 }; 284 };
285 285
286 } // namespace media 286 } // namespace media
287 287
288 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 288 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_source_host.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698