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

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

Issue 1408953005: Revert of Avoid Copying damage rect when using Overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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.cc ('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
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 19 matching lines...) Expand all
30 }; 30 };
31 typedef ScopedPtrVector<Strategy> StrategyList; 31 typedef ScopedPtrVector<Strategy> StrategyList;
32 32
33 explicit OverlayProcessor(OutputSurface* surface); 33 explicit OverlayProcessor(OutputSurface* surface);
34 virtual ~OverlayProcessor(); 34 virtual ~OverlayProcessor();
35 // Virtual to allow testing different strategies. 35 // Virtual to allow testing different strategies.
36 virtual void Initialize(); 36 virtual void Initialize();
37 37
38 void ProcessForOverlays(ResourceProvider* resource_provider, 38 void ProcessForOverlays(ResourceProvider* resource_provider,
39 RenderPassList* render_passes, 39 RenderPassList* render_passes,
40 OverlayCandidateList* candidates, 40 OverlayCandidateList* candidates);
41 gfx::Rect* damage_rect);
42 41
43 protected: 42 protected:
44 StrategyList strategies_; 43 StrategyList strategies_;
45 OutputSurface* surface_; 44 OutputSurface* surface_;
46 45
47 private: 46 private:
48 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); 47 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor);
49 }; 48 };
50 49
51 } // namespace cc 50 } // namespace cc
52 51
53 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ 52 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_candidate.cc ('k') | cc/output/overlay_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698