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

Unified Diff: cc/output/overlay_candidate.h

Issue 2559523002: Send overlay promotion hints from to GLStreamTextureImage. (Closed)
Patch Set: fiddled with GLboolean for windows compiler 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 | « no previous file | cc/output/overlay_candidate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_candidate.h
diff --git a/cc/output/overlay_candidate.h b/cc/output/overlay_candidate.h
index 68d62e3e91cb96e051deb3df2f9719caf7769eb4..e35299ded49101215660b68394ba04e52ea1a774 100644
--- a/cc/output/overlay_candidate.h
+++ b/cc/output/overlay_candidate.h
@@ -5,6 +5,7 @@
#ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_
#define CC_OUTPUT_OVERLAY_CANDIDATE_H_
+#include <map>
#include <vector>
#include "cc/base/cc_export.h"
@@ -114,9 +115,15 @@ class CC_EXPORT OverlayCandidateList : public std::vector<OverlayCandidate> {
OverlayCandidateList& operator=(const OverlayCandidateList&);
OverlayCandidateList& operator=(OverlayCandidateList&&);
+ // [id] == origin of candidate's |display_rect| for all promotable resources.
+ using PromotionHintInfoMap = std::map<ResourceId, gfx::PointF>;
+
// For android, this provides a set of resources that could be promoted to
// overlay, if one backs them with a SurfaceView.
- ResourceIdSet promotable_resource_hints_;
+ PromotionHintInfoMap promotion_hint_info_map_;
+
+ // Helper to insert |candidate| into |promotion_hint_info_|.
+ void AddPromotionHint(const OverlayCandidate& candidate);
};
} // namespace cc
« no previous file with comments | « no previous file | cc/output/overlay_candidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698