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

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

Issue 1535833002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-5
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « cc/output/overlay_candidate_validator.h ('k') | cc/output/overlay_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROCESSOR_H_
6 #define CC_OUTPUT_OVERLAY_PROCESSOR_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/output/overlay_candidate.h"
11 #include "cc/quads/render_pass.h"
12
13 namespace cc {
14 class OutputSurface;
15 class ResourceProvider;
16
17 class OverlayProcessor {
18 public:
19 class Strategy {
20 public:
21 virtual ~Strategy() {}
22 // Returns false if the strategy cannot be made to work with the
23 // current set of render passes. Returns true if the strategy was successful
24 // and adds any additional passes necessary to represent overlays to
25 // |render_passes_in_draw_order|.
26 virtual bool Attempt(RenderPassList* render_passes_in_draw_order,
27 OverlayCandidateList* candidates) = 0;
28 };
29 typedef ScopedPtrVector<Strategy> StrategyList;
30
31 OverlayProcessor(OutputSurface* surface, ResourceProvider* resource_provider);
32 virtual ~OverlayProcessor();
33 // Virtual to allow testing different strategies.
34 virtual void Initialize();
35
36 void ProcessForOverlays(RenderPassList* render_passes_in_draw_order,
37 OverlayCandidateList* candidate_list);
38
39 protected:
40 StrategyList strategies_;
41 OutputSurface* surface_;
42 ResourceProvider* resource_provider_;
43
44 private:
45 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor);
46 };
47
48 } // namespace cc
49
50 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_candidate_validator.h ('k') | cc/output/overlay_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698