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

Unified Diff: media/video/picture.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/ipc/service/gpu_video_decode_accelerator.cc ('k') | media/video/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/picture.h
diff --git a/media/video/picture.h b/media/video/picture.h
index 7abf361ebbbf652f4f1730b60f457e99667af77a..b2cb26b07c8bdeca46f0de3b13c89d35f9537a03 100644
--- a/media/video/picture.h
+++ b/media/video/picture.h
@@ -103,6 +103,18 @@ class MEDIA_EXPORT Picture {
void set_size_changed(bool size_changed) { size_changed_ = size_changed; }
+ bool surface_texture() const { return surface_texture_; }
+
+ void set_surface_texture(bool surface_texture) {
+ surface_texture_ = surface_texture;
+ }
+
+ bool wants_promotion_hint() const { return wants_promotion_hint_; }
+
+ void set_wants_promotion_hint(bool wants_promotion_hint) {
+ wants_promotion_hint_ = wants_promotion_hint;
+ }
+
private:
int32_t picture_buffer_id_;
int32_t bitstream_buffer_id_;
@@ -110,6 +122,8 @@ class MEDIA_EXPORT Picture {
gfx::ColorSpace color_space_;
bool allow_overlay_;
bool size_changed_;
+ bool surface_texture_;
+ bool wants_promotion_hint_;
};
} // namespace media
« no previous file with comments | « media/gpu/ipc/service/gpu_video_decode_accelerator.cc ('k') | media/video/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698