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

Side by Side Diff: components/exo/compositor_frame_sink_holder.h

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 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 | « components/exo/compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink_holder.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 COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_ 5 #ifndef COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
6 #define COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_ 6 #define COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 void SetNeedsBeginFrame(bool needs_begin_frame); 48 void SetNeedsBeginFrame(bool needs_begin_frame);
49 49
50 void Satisfy(const cc::SurfaceSequence& sequence); 50 void Satisfy(const cc::SurfaceSequence& sequence);
51 void Require(const cc::SurfaceId& id, const cc::SurfaceSequence& sequence); 51 void Require(const cc::SurfaceId& id, const cc::SurfaceSequence& sequence);
52 52
53 // Overridden from cc::mojom::MojoCompositorFrameSinkClient: 53 // Overridden from cc::mojom::MojoCompositorFrameSinkClient:
54 void DidReceiveCompositorFrameAck() override; 54 void DidReceiveCompositorFrameAck() override;
55 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 55 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 56 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
57 void WillDrawSurface() override; 57 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
58 const gfx::Rect& damage_rect) override;
58 59
59 // Overridden from cc::BeginFrameObserver: 60 // Overridden from cc::BeginFrameObserver:
60 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; 61 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override;
61 void OnBeginFrameSourcePausedChanged(bool paused) override; 62 void OnBeginFrameSourcePausedChanged(bool paused) override;
62 63
63 // Overridden from cc::ExternalBeginFrameSouceClient: 64 // Overridden from cc::ExternalBeginFrameSouceClient:
64 void OnNeedsBeginFrames(bool needs_begin_frames) override; 65 void OnNeedsBeginFrames(bool needs_begin_frames) override;
65 66
66 // Overridden from SurfaceObserver: 67 // Overridden from SurfaceObserver:
67 void OnSurfaceDestroying(Surface* surface) override; 68 void OnSurfaceDestroying(Surface* surface) override;
(...skipping 17 matching lines...) Expand all
85 cc::BeginFrameArgs last_begin_frame_args_; 86 cc::BeginFrameArgs last_begin_frame_args_;
86 87
87 base::WeakPtrFactory<CompositorFrameSinkHolder> weak_factory_; 88 base::WeakPtrFactory<CompositorFrameSinkHolder> weak_factory_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkHolder); 90 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkHolder);
90 }; 91 };
91 92
92 } // namespace exo 93 } // namespace exo
93 94
94 #endif // COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_ 95 #endif // COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
OLDNEW
« no previous file with comments | « components/exo/compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698