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

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

Issue 2691453002: [cc] Track observer status in ExternalBeginFrameSource. (Closed)
Patch Set: Fix android compile errors. 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() override;
58 58
59 // Overridden from cc::BeginFrameObserver: 59 // Overridden from cc::BeginFrameObserver:
60 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; 60 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override;
61 void OnBeginFrameSourcePausedChanged(bool paused) override; 61 void OnBeginFrameSourcePausedChanged(bool paused) override;
62 62
63 // Overridden from cc::ExternalBeginFrameSouceClient: 63 // Overridden from cc::ExternalBeginFrameSouceClient:
64 void OnNeedsBeginFrames(bool needs_begin_frames) override; 64 void OnNeedsBeginFrames(bool needs_begin_frames) override;
65 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override;
65 66
66 // Overridden from SurfaceObserver: 67 // Overridden from SurfaceObserver:
67 void OnSurfaceDestroying(Surface* surface) override; 68 void OnSurfaceDestroying(Surface* surface) override;
68 69
69 private: 70 private:
70 friend class base::RefCounted<CompositorFrameSinkHolder>; 71 friend class base::RefCounted<CompositorFrameSinkHolder>;
71 72
72 ~CompositorFrameSinkHolder() override; 73 ~CompositorFrameSinkHolder() override;
73 74
74 void UpdateNeedsBeginFrame(); 75 void UpdateNeedsBeginFrame();
(...skipping 10 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

Powered by Google App Engine
This is Rietveld 408576698