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

Unified Diff: cc/resources/texture_mailbox.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 | « cc/resources/resource_provider_unittest.cc ('k') | cc/resources/texture_mailbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 4f8065d9de369070c61c07a93d2a6d9e66b91093..0a3df5a55516174bd0217321675676a196fa6de0 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -58,6 +58,9 @@ class CC_EXPORT TextureMailbox {
}
bool is_overlay_candidate() const { return is_overlay_candidate_; }
+ void set_is_overlay_candidate(bool overlay_candidate) {
+ is_overlay_candidate_ = overlay_candidate;
+ }
bool secure_output_only() const { return secure_output_only_; }
bool nearest_neighbor() const { return nearest_neighbor_; }
void set_nearest_neighbor(bool nearest_neighbor) {
@@ -74,11 +77,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_;
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | cc/resources/texture_mailbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698