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

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

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: rebased Created 4 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 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 RESOURCE_UTILIZATION, 103 RESOURCE_UTILIZATION,
104 104
105 // Sources of VideoFrames use this marker to indicate that an instance of 105 // Sources of VideoFrames use this marker to indicate that an instance of
106 // VideoFrameExternalResources produced from the associated video frame 106 // VideoFrameExternalResources produced from the associated video frame
107 // should use read lock fences. 107 // should use read lock fences.
108 READ_LOCK_FENCES_ENABLED, 108 READ_LOCK_FENCES_ENABLED,
109 109
110 // Indicates that the frame is rotated. 110 // Indicates that the frame is rotated.
111 ROTATION, 111 ROTATION,
112 112
113 // Android only: if set, then this frame is not suitable for overlay, even
114 // if ALLOW_OVERLAY is set. However, it allows us to process the overlay
115 // to see if it would have been promoted, if it were backed by a SurfaceView
116 // instead. This lets us figure out when SurfaceViews are appropriate.
117 SURFACE_TEXTURE,
118
119 // Android only: if set, then this frame's resource would like to be
120 // notified about its promotability to an overlay.
121 WANTS_PROMOTION_HINT,
122
113 NUM_KEYS 123 NUM_KEYS
114 }; 124 };
115 125
116 VideoFrameMetadata(); 126 VideoFrameMetadata();
117 ~VideoFrameMetadata(); 127 ~VideoFrameMetadata();
118 128
119 bool HasKey(Key key) const; 129 bool HasKey(Key key) const;
120 130
121 void Clear() { dictionary_.Clear(); } 131 void Clear() { dictionary_.Clear(); }
122 132
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 const base::BinaryValue* GetBinaryValue(Key key) const; 166 const base::BinaryValue* GetBinaryValue(Key key) const;
157 167
158 base::DictionaryValue dictionary_; 168 base::DictionaryValue dictionary_;
159 169
160 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata); 170 DISALLOW_COPY_AND_ASSIGN(VideoFrameMetadata);
161 }; 171 };
162 172
163 } // namespace media 173 } // namespace media
164 174
165 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_ 175 #endif // MEDIA_BASE_VIDEO_FRAME_METADATA_H_
OLDNEW
« no previous file with comments | « components/display_compositor/compositor_overlay_candidate_validator_android.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698