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

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

Issue 806413004: Plumb allow_overlay flag for video path into cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 uint8* visible_data(size_t plane); 285 uint8* visible_data(size_t plane);
286 286
287 // Returns the mailbox holder of the native texture wrapped by this frame. 287 // Returns the mailbox holder of the native texture wrapped by this frame.
288 // Only valid to call if this is a NATIVE_TEXTURE frame. Before using the 288 // Only valid to call if this is a NATIVE_TEXTURE frame. Before using the
289 // mailbox, the caller must wait for the included sync point. 289 // mailbox, the caller must wait for the included sync point.
290 const gpu::MailboxHolder* mailbox_holder() const; 290 const gpu::MailboxHolder* mailbox_holder() const;
291 291
292 // Returns the shared-memory handle, if present 292 // Returns the shared-memory handle, if present
293 base::SharedMemoryHandle shared_memory_handle() const; 293 base::SharedMemoryHandle shared_memory_handle() const;
294 294
295 void set_allow_overlay(bool allow_overlay) { allow_overlay_ = allow_overlay; }
296 bool allow_overlay() const { return allow_overlay_; }
297
295 #if defined(OS_POSIX) 298 #if defined(OS_POSIX)
296 // Returns backing dmabuf file descriptor for given |plane|, if present. 299 // Returns backing dmabuf file descriptor for given |plane|, if present.
297 int dmabuf_fd(size_t plane) const; 300 int dmabuf_fd(size_t plane) const;
298 #endif 301 #endif
299 302
300 #if defined(OS_MACOSX) 303 #if defined(OS_MACOSX)
301 // Returns the backing CVPixelBuffer, if present. 304 // Returns the backing CVPixelBuffer, if present.
302 CVPixelBufferRef cv_pixel_buffer() const; 305 CVPixelBufferRef cv_pixel_buffer() const;
303 #endif 306 #endif
304 307
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 399
397 base::Closure no_longer_needed_cb_; 400 base::Closure no_longer_needed_cb_;
398 401
399 base::TimeDelta timestamp_; 402 base::TimeDelta timestamp_;
400 403
401 base::Lock release_sync_point_lock_; 404 base::Lock release_sync_point_lock_;
402 uint32 release_sync_point_; 405 uint32 release_sync_point_;
403 406
404 const bool end_of_stream_; 407 const bool end_of_stream_;
405 408
409 bool allow_overlay_;
410
406 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 411 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
407 }; 412 };
408 413
409 } // namespace media 414 } // namespace media
410 415
411 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 416 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698