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

Unified Diff: cc/output/overlay_processor.h

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exporting resources 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 side-by-side diff with in-line comments
Download patch
Index: cc/output/overlay_processor.h
diff --git a/cc/output/overlay_processor.h b/cc/output/overlay_processor.h
index 41a1f4d915ee85758c1c3a20e4f2812bab8a2b76..e50972e711d70b28ba624d1c14679d58cbfb5da7 100644
--- a/cc/output/overlay_processor.h
+++ b/cc/output/overlay_processor.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
+#include "cc/output/overlay_candidate.h"
#include "cc/quads/render_pass.h"
namespace cc {
@@ -23,7 +24,8 @@ class CC_EXPORT OverlayProcessor {
// current set of render passes. Returns true if the strategy was successful
// and adds any additional passes necessary to represent overlays to
// |render_passes_in_draw_order|.
- virtual bool Attempt(RenderPassList* render_passes_in_draw_order) = 0;
+ virtual bool Attempt(RenderPassList* render_passes_in_draw_order,
+ OverlayCandidateList* candidates) = 0;
};
typedef ScopedPtrVector<Strategy> StrategyList;
@@ -32,7 +34,8 @@ class CC_EXPORT OverlayProcessor {
// Virtual to allow testing different strategies.
virtual void Initialize();
- void ProcessForOverlays(RenderPassList* render_passes_in_draw_order);
+ void ProcessForOverlays(RenderPassList* render_passes_in_draw_order,
+ OverlayCandidateList* candidate_list);
protected:
StrategyList strategies_;

Powered by Google App Engine
This is Rietveld 408576698