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

Side by Side 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: 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 #ifndef CC_OUTPUT_OVERLAY_PROCESSOR_H_ 5 #ifndef CC_OUTPUT_OVERLAY_PROCESSOR_H_
6 #define CC_OUTPUT_OVERLAY_PROCESSOR_H_ 6 #define CC_OUTPUT_OVERLAY_PROCESSOR_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"
(...skipping 14 matching lines...) Expand all
25 // |render_passes_in_draw_order|. 25 // |render_passes_in_draw_order|.
26 virtual bool Attempt(RenderPassList* render_passes_in_draw_order) = 0; 26 virtual bool Attempt(RenderPassList* render_passes_in_draw_order) = 0;
27 }; 27 };
28 typedef ScopedPtrVector<Strategy> StrategyList; 28 typedef ScopedPtrVector<Strategy> StrategyList;
29 29
30 OverlayProcessor(OutputSurface* surface, ResourceProvider* resource_provider); 30 OverlayProcessor(OutputSurface* surface, ResourceProvider* resource_provider);
31 virtual ~OverlayProcessor(); 31 virtual ~OverlayProcessor();
32 // Virtual to allow testing different strategies. 32 // Virtual to allow testing different strategies.
33 virtual void Initialize(); 33 virtual void Initialize();
34 34
35 void ProcessForOverlays(RenderPassList* render_passes_in_draw_order); 35 bool ProcessForOverlays(RenderPassList* render_passes_in_draw_order);
36 36
37 protected: 37 protected:
38 StrategyList strategies_; 38 StrategyList strategies_;
39 OutputSurface* surface_; 39 OutputSurface* surface_;
40 ResourceProvider* resource_provider_; 40 ResourceProvider* resource_provider_;
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); 43 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor);
44 }; 44 };
45 45
46 } // namespace cc 46 } // namespace cc
47 47
48 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ 48 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698