 Chromium Code Reviews
 Chromium Code Reviews Issue 2919863004:
  Add flag to signal that video frame must be drawn using an overlay.  (Closed)
    
  
    Issue 2919863004:
  Add flag to signal that video frame must be drawn using an overlay.  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_METADATA_H_ | 5 #ifndef MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 
| 6 #define MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 6 #define MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 
| 7 | 7 | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 // Android only: if set, then this frame is not suitable for overlay, even | 107 // Android only: if set, then this frame is not suitable for overlay, even | 
| 108 // if ALLOW_OVERLAY is set. However, it allows us to process the overlay | 108 // if ALLOW_OVERLAY is set. However, it allows us to process the overlay | 
| 109 // to see if it would have been promoted, if it were backed by a SurfaceView | 109 // to see if it would have been promoted, if it were backed by a SurfaceView | 
| 110 // instead. This lets us figure out when SurfaceViews are appropriate. | 110 // instead. This lets us figure out when SurfaceViews are appropriate. | 
| 111 SURFACE_TEXTURE, | 111 SURFACE_TEXTURE, | 
| 112 | 112 | 
| 113 // Android only: if set, then this frame's resource would like to be | 113 // Android only: if set, then this frame's resource would like to be | 
| 114 // notified about its promotability to an overlay. | 114 // notified about its promotability to an overlay. | 
| 115 WANTS_PROMOTION_HINT, | 115 WANTS_PROMOTION_HINT, | 
| 116 | 116 | 
| 117 // Windows only: if set, then this frame must be displayed in an overlay | |
| 118 // rahter than with the GLRenderer. | |
| 
danakj
2017/06/07 15:26:40
typo: rather
maybe instead of naming the GLRender
 | |
| 119 REQUIRE_OVERLAY, | |
| 120 | |
| 117 NUM_KEYS | 121 NUM_KEYS | 
| 118 }; | 122 }; | 
| 119 | 123 | 
| 120 VideoFrameMetadata(); | 124 VideoFrameMetadata(); | 
| 121 ~VideoFrameMetadata(); | 125 ~VideoFrameMetadata(); | 
| 122 | 126 | 
| 123 bool HasKey(Key key) const; | 127 bool HasKey(Key key) const; | 
| 124 | 128 | 
| 125 void Clear() { dictionary_.Clear(); } | 129 void Clear() { dictionary_.Clear(); } | 
| 126 | 130 | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 160 const base::Value* GetBinaryValue(Key key) const; | 164 const base::Value* GetBinaryValue(Key key) const; | 
| 161 | 165 | 
| 162 base::DictionaryValue dictionary_; | 166 base::DictionaryValue dictionary_; | 
| 163 | 167 | 
| 164 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); | 168 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); | 
| 165 }; | 169 }; | 
| 166 | 170 | 
| 167 } // namespace media | 171 } // namespace media | 
| 168 | 172 | 
| 169 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 173 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ | 
| OLD | NEW |