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

Unified Diff: cc/output/overlay_candidate_validator.h

Issue 2508203004: Add hints for potential overlay promotion on android. (Closed)
Patch Set: #include and comment cleanup 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_validator.h
diff --git a/cc/output/overlay_candidate_validator.h b/cc/output/overlay_candidate_validator.h
index 09d380b82a9227b13bd343f91c3234ce00dc74bf..cd47e74038bc45f7309b1a5f6f0f601cae0e6b89 100644
--- a/cc/output/overlay_candidate_validator.h
+++ b/cc/output/overlay_candidate_validator.h
@@ -8,6 +8,7 @@
#include <vector>
#include "cc/base/cc_export.h"
+#include "cc/base/resource_id.h"
#include "cc/output/overlay_candidate.h"
#include "cc/output/overlay_processor.h"
@@ -31,6 +32,13 @@ class CC_EXPORT OverlayCandidateValidator {
// coordinates if necessary.
virtual void CheckOverlaySupport(OverlayCandidateList* surfaces) = 0;
+ // Called before beginning a new pass for overlay promotion to clear out any
+ // promotable resources. One must CheckoverlaySupport() again.
+ virtual void ClearPromotableResources() {}
+
+ // Returns whether |resource_id| is promotable.
+ virtual bool IsResourcePromotable(ResourceId resource_id);
piman 2016/11/23 00:37:25 Super nit: in the context of OverlayCandidateValid
liberato (no reviews please) 2016/12/01 20:59:11 i've since moved the set into OverlayCandidateList
+
virtual ~OverlayCandidateValidator() {}
};

Powered by Google App Engine
This is Rietveld 408576698