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

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

Issue 2017473002: cc: Lock resources directly in CALayerOverlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add operator= Created 4 years, 7 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.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
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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/output/ca_layer_overlay.h"
13 #include "cc/output/overlay_candidate.h"
14 #include "cc/quads/render_pass.h" 12 #include "cc/quads/render_pass.h"
15 13
16 namespace cc { 14 namespace cc {
15 class CALayerOverlay;
17 class OutputSurface; 16 class OutputSurface;
17 class OverlayCandidate;
18 class ResourceProvider; 18 class ResourceProvider;
19 19
20 typedef std::vector<CALayerOverlay> CALayerOverlayList;
21 typedef std::vector<OverlayCandidate> OverlayCandidateList;
22
20 class CC_EXPORT OverlayProcessor { 23 class CC_EXPORT OverlayProcessor {
21 public: 24 public:
22 class CC_EXPORT Strategy { 25 class CC_EXPORT Strategy {
23 public: 26 public:
24 virtual ~Strategy() {} 27 virtual ~Strategy() {}
25 // Returns false if the strategy cannot be made to work with the 28 // Returns false if the strategy cannot be made to work with the
26 // current set of render passes. Returns true if the strategy was successful 29 // current set of render passes. Returns true if the strategy was successful
27 // and adds any additional passes necessary to represent overlays to 30 // and adds any additional passes necessary to represent overlays to
28 // |render_passes|. 31 // |render_passes|.
29 virtual bool Attempt(ResourceProvider* resource_provider, 32 virtual bool Attempt(ResourceProvider* resource_provider,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Update |damage_rect| by removing damage casued by |candidates|. 65 // Update |damage_rect| by removing damage casued by |candidates|.
63 void UpdateDamageRect(OverlayCandidateList* candidates, 66 void UpdateDamageRect(OverlayCandidateList* candidates,
64 gfx::Rect* damage_rect); 67 gfx::Rect* damage_rect);
65 68
66 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor); 69 DISALLOW_COPY_AND_ASSIGN(OverlayProcessor);
67 }; 70 };
68 71
69 } // namespace cc 72 } // namespace cc
70 73
71 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_ 74 #endif // CC_OUTPUT_OVERLAY_PROCESSOR_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_candidate.h ('k') | cc/output/overlay_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698