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

Unified Diff: cc/ipc/transferable_resource_struct_traits.cc

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: replaced AVDA changes with TODO 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/ipc/transferable_resource_struct_traits.cc
diff --git a/cc/ipc/transferable_resource_struct_traits.cc b/cc/ipc/transferable_resource_struct_traits.cc
index da60d62323f1a150f3d35fbc45d8caea92f7c71f..b0f648ea83950579989805a4de1350345dc8332c 100644
--- a/cc/ipc/transferable_resource_struct_traits.cc
+++ b/cc/ipc/transferable_resource_struct_traits.cc
@@ -24,6 +24,10 @@ bool StructTraits<cc::mojom::TransferableResourceDataView,
out->read_lock_fences_enabled = data.read_lock_fences_enabled();
out->is_software = data.is_software();
out->is_overlay_candidate = data.is_overlay_candidate();
+#if defined(OS_ANDROID)
+ out->is_backed_by_surface_texture = data.is_backed_by_surface_texture();
+ out->wants_promotion_hint = data.wants_promotion_hint();
+#endif
return true;
}

Powered by Google App Engine
This is Rietveld 408576698