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

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

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, Build 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
« no previous file with comments | « cc/output/overlay_processor.cc ('k') | cc/output/overlay_strategy_single_on_top.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 5 #ifndef CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 6 #define CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/overlay_candidate.h"
11 #include "cc/output/overlay_processor.h" 12 #include "cc/output/overlay_processor.h"
12 #include "cc/quads/render_pass.h" 13 #include "cc/quads/render_pass.h"
13 14
14 namespace cc { 15 namespace cc {
15 class OverlayCandidateValidator; 16 class OverlayCandidateValidator;
16 17
17 class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy { 18 class CC_EXPORT OverlayStrategySingleOnTop : public OverlayProcessor::Strategy {
18 public: 19 public:
19 OverlayStrategySingleOnTop(OverlayCandidateValidator* capability_checker, 20 OverlayStrategySingleOnTop(OverlayCandidateValidator* capability_checker,
20 ResourceProvider* resource_provider); 21 ResourceProvider* resource_provider);
21 virtual bool Attempt(RenderPassList* render_passes_in_draw_order) OVERRIDE; 22 virtual bool Attempt(RenderPassList* render_passes_in_draw_order,
23 OverlayCandidateList* candidate_list) OVERRIDE;
22 24
23 private: 25 private:
24 OverlayCandidateValidator* capability_checker_; 26 OverlayCandidateValidator* capability_checker_;
25 ResourceProvider* resource_provider_; 27 ResourceProvider* resource_provider_;
26 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop); 28 DISALLOW_COPY_AND_ASSIGN(OverlayStrategySingleOnTop);
27 }; 29 };
28 30
29 } // namespace cc 31 } // namespace cc
30 32
31 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ 33 #endif // CC_OUTPUT_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_processor.cc ('k') | cc/output/overlay_strategy_single_on_top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698