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

Unified Diff: components/display_compositor/compositor_overlay_candidate_validator_android.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: components/display_compositor/compositor_overlay_candidate_validator_android.h
diff --git a/components/display_compositor/compositor_overlay_candidate_validator_android.h b/components/display_compositor/compositor_overlay_candidate_validator_android.h
index 0dd3becf66b4339ab72b14e7badd4d5e9b8d7944..7106c6b45b34ec1cdc6b0f1f1297dba144a08749 100644
--- a/components/display_compositor/compositor_overlay_candidate_validator_android.h
+++ b/components/display_compositor/compositor_overlay_candidate_validator_android.h
@@ -5,7 +5,10 @@
#ifndef COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ANDROID_H_
#define COMPONENTS_DISPLAY_COMPOSITOR_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_ANDROID_H_
+#include <set>
+
#include "base/macros.h"
+#include "cc/base/resource_id.h"
#include "components/display_compositor/compositor_overlay_candidate_validator.h"
#include "components/display_compositor/display_compositor_export.h"
@@ -31,7 +34,13 @@ class DISPLAY_COMPOSITOR_EXPORT CompositorOverlayCandidateValidatorAndroid
void SetSoftwareMirrorMode(bool enabled) override;
+ void ClearPromotableResources() override;
+
+ bool IsResourcePromotable(cc::ResourceId resource_id) override;
+
private:
+ std::set<cc::ResourceId> promotable_resources_;
+
DISALLOW_COPY_AND_ASSIGN(CompositorOverlayCandidateValidatorAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698