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

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

Issue 2691453002: [cc] Track observer status in ExternalBeginFrameSource. (Closed)
Patch Set: Fix comments. 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 | « cc/test/begin_frame_source_test.h ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const cc::LocalSurfaceId& local_surface_id, 57 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
58 const gfx::Rect& damage_rect) override; 58 const gfx::Rect& damage_rect) override;
59 59
60 // Overridden from cc::BeginFrameObserver: 60 // Overridden from cc::BeginFrameObserver:
61 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; 61 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override;
62 void OnBeginFrameSourcePausedChanged(bool paused) override; 62 void OnBeginFrameSourcePausedChanged(bool paused) override;
63 63
64 // Overridden from cc::ExternalBeginFrameSouceClient: 64 // Overridden from cc::ExternalBeginFrameSourceClient:
65 void OnNeedsBeginFrames(bool needs_begin_frames) override; 65 void OnNeedsBeginFrames(bool needs_begin_frames) override;
66 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override;
66 67
67 // Overridden from SurfaceObserver: 68 // Overridden from SurfaceObserver:
68 void OnSurfaceDestroying(Surface* surface) override; 69 void OnSurfaceDestroying(Surface* surface) override;
69 70
70 private: 71 private:
71 friend class base::RefCounted<CompositorFrameSinkHolder>; 72 friend class base::RefCounted<CompositorFrameSinkHolder>;
72 73
73 ~CompositorFrameSinkHolder() override; 74 ~CompositorFrameSinkHolder() override;
74 75
75 void UpdateNeedsBeginFrame(); 76 void UpdateNeedsBeginFrame();
(...skipping 10 matching lines...) Expand all
86 cc::BeginFrameArgs last_begin_frame_args_; 87 cc::BeginFrameArgs last_begin_frame_args_;
87 88
88 base::WeakPtrFactory<CompositorFrameSinkHolder> weak_factory_; 89 base::WeakPtrFactory<CompositorFrameSinkHolder> weak_factory_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkHolder); 91 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkHolder);
91 }; 92 };
92 93
93 } // namespace exo 94 } // namespace exo
94 95
95 #endif // COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_ 96 #endif // COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
OLDNEW
« no previous file with comments | « cc/test/begin_frame_source_test.h ('k') | components/exo/compositor_frame_sink_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698