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

Unified Diff: cc/output/overlay_candidate.h

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: Created 4 years, 1 month 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/output/overlay_candidate.h
diff --git a/cc/output/overlay_candidate.h b/cc/output/overlay_candidate.h
index 7ced45c4f1b9b3f3595de974a6f1d1205d1822cb..b447e80db39e689b81afa19cee183345ecfca07b 100644
--- a/cc/output/overlay_candidate.h
+++ b/cc/output/overlay_candidate.h
@@ -70,6 +70,14 @@ class CC_EXPORT OverlayCandidate {
bool use_output_surface_for_resource;
// Texture resource to present in an overlay.
unsigned resource_id;
+
+#if defined(OS_ANDROID)
+ // For candidates from StreamVideoDrawQuads, this records whether the quad is
+ // marked as being backed by a SurfaceTexture or not. If so, it's not really
+ // promotable to an overlay.
+ bool is_backed_by_surface_texture;
+#endif
+
// Stacking order of the overlay plane relative to the main surface,
// which is 0. Signed to allow for "underlays".
int plane_z_order;

Powered by Google App Engine
This is Rietveld 408576698