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

Unified Diff: cc/output/overlay_strategy_underlay.cc

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 | « cc/output/overlay_processor.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_underlay.cc
diff --git a/cc/output/overlay_strategy_underlay.cc b/cc/output/overlay_strategy_underlay.cc
index e50918967c5872025f285573a796e457052370af..e08c40d539f60a718901235b5303f59238b5e11b 100644
--- a/cc/output/overlay_strategy_underlay.cc
+++ b/cc/output/overlay_strategy_underlay.cc
@@ -52,14 +52,14 @@ bool OverlayStrategyUnderlay::Attempt(ResourceProvider* resource_provider,
// we can only promote a single quad. Otherwise, somebody might try to
// back one of the promotable quads with a SurfaceView, and either it or
// |candidate| would have to fall back to a texture.
- candidate_list->promotable_resource_hints_.clear();
- candidate_list->promotable_resource_hints_.insert(candidate.resource_id);
+ candidate_list->promotion_hint_info_map_.clear();
+ candidate_list->AddPromotionHint(candidate);
return true;
} else {
// If |candidate| should get a promotion hint, then rememeber that now.
- candidate_list->promotable_resource_hints_.insert(
- new_candidate_list.promotable_resource_hints_.begin(),
- new_candidate_list.promotable_resource_hints_.end());
+ candidate_list->promotion_hint_info_map_.insert(
+ new_candidate_list.promotion_hint_info_map_.begin(),
+ new_candidate_list.promotion_hint_info_map_.end());
}
}
« no previous file with comments | « cc/output/overlay_processor.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698