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

Side by Side Diff: cc/surfaces/compositor_frame_sink_support.h

Issue 2811813004: Surface Synchronization: Distinguish between dependencies and references (Closed)
Patch Set: Update remaining tests to correspond to new behavior Created 3 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_set> 9 #include <unordered_set>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 return surface_factory_.current_surface_for_testing(); 43 return surface_factory_.current_surface_for_testing();
44 } 44 }
45 45
46 const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const { 46 const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const {
47 return reference_tracker_; 47 return reference_tracker_;
48 } 48 }
49 49
50 // SurfaceFactoryClient implementation. 50 // SurfaceFactoryClient implementation.
51 void ReferencedSurfacesChanged( 51 void ReferencedSurfacesChanged(
52 const LocalSurfaceId& local_surface_id, 52 const LocalSurfaceId& local_surface_id,
53 const std::vector<SurfaceId>* active_referenced_surfaces, 53 const std::vector<SurfaceId>* active_referenced_surfaces) override;
vmpstr 2017/04/11 18:35:17 nit: rename to referenced_surfaces or do you want
Fady Samuel 2017/04/11 19:39:24 I was thinking about that but I think it's useful
54 const std::vector<SurfaceId>* pending_referenced_surfaces) override;
55 void ReturnResources(const ReturnedResourceArray& resources) override; 54 void ReturnResources(const ReturnedResourceArray& resources) override;
56 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 55 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
57 void WillDrawSurface(const LocalSurfaceId& local_surface_id, 56 void WillDrawSurface(const LocalSurfaceId& local_surface_id,
58 const gfx::Rect& damage_rect) override; 57 const gfx::Rect& damage_rect) override;
59 58
60 void EvictFrame(); 59 void EvictFrame();
61 void SetNeedsBeginFrame(bool needs_begin_frame); 60 void SetNeedsBeginFrame(bool needs_begin_frame);
62 void BeginFrameDidNotSwap(const BeginFrameAck& ack); 61 void BeginFrameDidNotSwap(const BeginFrameAck& ack);
63 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id, 62 void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id,
64 CompositorFrame frame); 63 CompositorFrame frame);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const bool handles_frame_sink_id_invalidation_; 128 const bool handles_frame_sink_id_invalidation_;
130 129
131 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; 130 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
132 131
133 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); 132 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
134 }; 133 };
135 134
136 } // namespace cc 135 } // namespace cc
137 136
138 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 137 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698