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

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

Issue 2551083003: Add Satisfy() and Require() to MojoCompositorFrameSink (Closed)
Patch Set: Rebase; changed LOG to DLOG Created 4 years 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/ipc/mojo_compositor_frame_sink.mojom ('k') | cc/surfaces/compositor_frame_sink_support.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 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 21 matching lines...) Expand all
32 std::unique_ptr<Display> display); 32 std::unique_ptr<Display> display);
33 33
34 ~CompositorFrameSinkSupport() override; 34 ~CompositorFrameSinkSupport() override;
35 35
36 const FrameSinkId& frame_sink_id() const { return frame_sink_id_; } 36 const FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
37 37
38 void EvictFrame(); 38 void EvictFrame();
39 void SetNeedsBeginFrame(bool needs_begin_frame); 39 void SetNeedsBeginFrame(bool needs_begin_frame);
40 void SubmitCompositorFrame(const LocalFrameId& local_frame_id, 40 void SubmitCompositorFrame(const LocalFrameId& local_frame_id,
41 CompositorFrame frame); 41 CompositorFrame frame);
42 void Require(const LocalFrameId& local_frame_id,
43 const SurfaceSequence& sequence);
44 void Satisfy(const SurfaceSequence& sequence);
42 void AddChildFrameSink(const FrameSinkId& child_frame_sink_id); 45 void AddChildFrameSink(const FrameSinkId& child_frame_sink_id);
43 void RemoveChildFrameSink(const FrameSinkId& child_frame_sink_id); 46 void RemoveChildFrameSink(const FrameSinkId& child_frame_sink_id);
44 47
45 private: 48 private:
46 void DidReceiveCompositorFrameAck(); 49 void DidReceiveCompositorFrameAck();
47 50
48 // DisplayClient implementation. 51 // DisplayClient implementation.
49 void DisplayOutputSurfaceLost() override; 52 void DisplayOutputSurfaceLost() override;
50 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 53 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
51 const RenderPassList& render_passes) override; 54 const RenderPassList& render_passes) override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 std::unordered_set<FrameSinkId, FrameSinkIdHash> child_frame_sinks_; 101 std::unordered_set<FrameSinkId, FrameSinkIdHash> child_frame_sinks_;
99 102
100 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; 103 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); 105 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
103 }; 106 };
104 107
105 } // namespace cc 108 } // namespace cc
106 109
107 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 110 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
OLDNEW
« no previous file with comments | « cc/ipc/mojo_compositor_frame_sink.mojom ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698