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

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

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Added CompositorFrameSinkHolder class and addressed comments" Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
6 #define COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
7
8 #include <map>
9
10 #include "cc/resources/single_release_callback.h"
11 #include "cc/resources/transferable_resource.h"
12 #include "cc/scheduler/begin_frame_source.h"
13
14 namespace exo {
15
16 // TODO(staraz): Implement MojoCompositorFrameSinkClient
17 class CompositorFrameSinkHolder
18 : public base::RefCounted<CompositorFrameSinkHolder> {
19 public:
20 CompositorFrameSinkHolder();
21
22 // cc::mojom::MojoCompositorFrameSinkClient:
23 void DidReceiveCompositorFrameAck();
Fady Samuel 2016/11/17 21:42:54 Add implementations for these? TODOs are fine.
Alex Z. 2016/11/23 14:25:04 Done.
24 void OnBeginFrame(const cc::BeginFrameArgs& args);
25 void ReclaimResources(const cc::ReturnedResourceArray& resources);
26
27 private:
28 friend class base::RefCounted<CompositorFrameSinkHolder>;
29 friend class Surface;
30
31 ~CompositorFrameSinkHolder();
32
33 std::map<int,
34 std::pair<scoped_refptr<CompositorFrameSinkHolder>,
35 std::unique_ptr<cc::SingleReleaseCallback>>>
36 release_callbacks_;
37 };
Fady Samuel 2016/11/17 21:42:54 nit: DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkH
Alex Z. 2016/11/23 14:25:04 Done.
38
39 } // namespace exo
40
41 #endif // COMPONENTS_EXO_COMPOSITOR_FRAME_SINK_HOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698