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

Side by Side Diff: cc/output/overlay_processor.cc

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More plumbing Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/output/overlay_processor.h" 5 #include "cc/output/overlay_processor.h"
6 6
7 #include "cc/output/output_surface.h" 7 #include "cc/output/output_surface.h"
8 #include "cc/output/overlay_strategy_single_on_top.h" 8 #include "cc/output/overlay_strategy_single_on_top.h"
9 #include "cc/quads/draw_quad.h" 9 #include "cc/quads/draw_quad.h"
10 #include "cc/quads/texture_draw_quad.h" 10 #include "cc/quads/texture_draw_quad.h"
(...skipping 12 matching lines...) Expand all
23 OverlayCandidateValidator* candidates = 23 OverlayCandidateValidator* candidates =
24 surface_->overlay_candidate_validator(); 24 surface_->overlay_candidate_validator();
25 if (candidates) { 25 if (candidates) {
26 strategies_.push_back(scoped_ptr<Strategy>( 26 strategies_.push_back(scoped_ptr<Strategy>(
27 new OverlayStrategySingleOnTop(candidates, resource_provider_))); 27 new OverlayStrategySingleOnTop(candidates, resource_provider_)));
28 } 28 }
29 } 29 }
30 30
31 OverlayProcessor::~OverlayProcessor() {} 31 OverlayProcessor::~OverlayProcessor() {}
32 32
33 void OverlayProcessor::ProcessForOverlays( 33 bool OverlayProcessor::ProcessForOverlays(
34 RenderPassList* render_passes_in_draw_order) { 34 RenderPassList* render_passes_in_draw_order) {
35 for (StrategyList::iterator it = strategies_.begin(); it != strategies_.end(); 35 for (StrategyList::iterator it = strategies_.begin(); it != strategies_.end();
36 ++it) { 36 ++it) {
37 if ((*it)->Attempt(render_passes_in_draw_order)) 37 if ((*it)->Attempt(render_passes_in_draw_order))
38 return; 38 return true;
39 } 39 }
40 return false;
40 } 41 }
41 42
42 } // namespace cc 43 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698