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

Unified Diff: cc/resources/texture_mailbox.h

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: promotable_resources_ => promotable_resource_hints_ 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
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 4f8065d9de369070c61c07a93d2a6d9e66b91093..10267977c9bdbcda12d63a69f6fb8bed2ba40662 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -74,11 +74,29 @@ class CC_EXPORT TextureMailbox {
SharedBitmap* shared_bitmap() const { return shared_bitmap_; }
size_t SharedMemorySizeInBytes() const;
+#if defined(OS_ANDROID)
+ bool is_backed_by_surface_texture() const {
+ return is_backed_by_surface_texture_;
+ }
+
+ void set_is_backed_by_surface_texture(bool value) {
+ is_backed_by_surface_texture_ = value;
+ }
+
+ bool wants_promotion_hint() const { return wants_promotion_hint_; }
+
+ void set_wants_promotion_hint(bool value) { wants_promotion_hint_ = value; }
+#endif
+
private:
gpu::MailboxHolder mailbox_holder_;
SharedBitmap* shared_bitmap_;
gfx::Size size_in_pixels_;
bool is_overlay_candidate_;
+#if defined(OS_ANDROID)
+ bool is_backed_by_surface_texture_;
+ bool wants_promotion_hint_;
+#endif
bool secure_output_only_;
bool nearest_neighbor_;
gfx::ColorSpace color_space_;

Powered by Google App Engine
This is Rietveld 408576698