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

Unified Diff: cc/output/overlay_processor.cc

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more tests Created 5 years, 6 months 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_processor.cc
diff --git a/cc/output/overlay_processor.cc b/cc/output/overlay_processor.cc
index 0f5ec560dd6baeb42bda510ee3ff602826e9382d..baae69dd10ed2bbe04e9178b1948c743a3356d23 100644
--- a/cc/output/overlay_processor.cc
+++ b/cc/output/overlay_processor.cc
@@ -12,22 +12,19 @@
namespace cc {
-OverlayProcessor::OverlayProcessor(OutputSurface* surface,
- ResourceProvider* resource_provider)
- : surface_(surface), resource_provider_(resource_provider) {}
+OverlayProcessor::OverlayProcessor(OutputSurface* surface) : surface_(surface) {
+}
void OverlayProcessor::Initialize() {
DCHECK(surface_);
- if (!resource_provider_)
- return;
OverlayCandidateValidator* candidates =
surface_->GetOverlayCandidateValidator();
if (candidates) {
- strategies_.push_back(scoped_ptr<Strategy>(
- new OverlayStrategySingleOnTop(candidates, resource_provider_)));
- strategies_.push_back(scoped_ptr<Strategy>(
- new OverlayStrategyUnderlay(candidates, resource_provider_)));
+ strategies_.push_back(
+ scoped_ptr<Strategy>(new OverlayStrategySingleOnTop(candidates)));
+ strategies_.push_back(
+ scoped_ptr<Strategy>(new OverlayStrategyUnderlay(candidates)));
}
}

Powered by Google App Engine
This is Rietveld 408576698