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

Side by Side Diff: cc/output/overlay_renderer.h

Issue 197223003: Start of hardware overlay support in CC with Ubercompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_OVERLAY_RENDERER_H_
6 #define CC_OUTPUT_OVERLAY_RENDERER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h"
11 #include "cc/quads/render_pass.h"
12
13 namespace cc {
14 class OutputSurface;
15 class ResourceProvider;
16
17 class CC_EXPORT OverlayRenderer {
piman 2014/03/14 03:42:34 Naming nit: OverlayRenderer sounds like it derives
enne (OOO) 2014/03/14 18:13:41 OverlayProcessor? OverlayPassProcessor?
alexst (slow to review) 2014/03/14 19:54:22 Maybe OverlayStrategyProcessor?
18 public:
19 class Strategy {
20 public:
21 virtual ~Strategy() {}
22 virtual bool Attempt(RenderPassList* render_passes_in_draw_order) = 0;
piman 2014/03/14 03:42:34 Could you document a bit the contract? It sounds l
23 };
24 virtual ~OverlayRenderer();
25 OverlayRenderer(OutputSurface* surface, ResourceProvider* resource_provider);
26
27 void ProcessForOverlays(RenderPassList* render_passes_in_draw_order);
28
29 private:
30 typedef ScopedPtrVector<Strategy> StrategyList;
31 StrategyList strategies_;
32 DISALLOW_COPY_AND_ASSIGN(OverlayRenderer);
33 };
34
35 } // namespace cc
36
37 #endif // CC_OUTPUT_OVERLAY_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698