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

Side by Side Diff: components/viz/frame_sinks/mojo_frame_sink_manager.h

Issue 2908783002: WIP Hittest Component.
Patch Set: change HitTestFlags to constants so we can mix and match and convert to struct naming convention Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_
6 #define COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ 6 #define COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // cc::SurfaceObserver implementation. 81 // cc::SurfaceObserver implementation.
82 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override; 82 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override;
83 void OnSurfaceDamaged(const cc::SurfaceId& surface_id, 83 void OnSurfaceDamaged(const cc::SurfaceId& surface_id,
84 const cc::BeginFrameAck& ack, 84 const cc::BeginFrameAck& ack,
85 bool* changed) override; 85 bool* changed) override;
86 void OnSurfaceDiscarded(const cc::SurfaceId& surface_id) override; 86 void OnSurfaceDiscarded(const cc::SurfaceId& surface_id) override;
87 void OnSurfaceDestroyed(const cc::SurfaceId& surface_id) override; 87 void OnSurfaceDestroyed(const cc::SurfaceId& surface_id) override;
88 void OnSurfaceDamageExpected(const cc::SurfaceId& surface_id, 88 void OnSurfaceDamageExpected(const cc::SurfaceId& surface_id,
89 const cc::BeginFrameArgs& args) override; 89 const cc::BeginFrameArgs& args) override;
90 void OnSurfaceWillDraw(const cc::SurfaceId& surface_id) override {}
90 91
91 // GpuCompositorFrameSinkDelegate implementation. 92 // GpuCompositorFrameSinkDelegate implementation.
92 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id, 93 void OnClientConnectionLost(const cc::FrameSinkId& frame_sink_id,
93 bool destroy_compositor_frame_sink) override; 94 bool destroy_compositor_frame_sink) override;
94 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id, 95 void OnPrivateConnectionLost(const cc::FrameSinkId& frame_sink_id,
95 bool destroy_compositor_frame_sink) override; 96 bool destroy_compositor_frame_sink) override;
96 97
97 // SurfaceManager should be the first object constructed and the last object 98 // SurfaceManager should be the first object constructed and the last object
98 // destroyed in order to ensure that all other objects that depend on it have 99 // destroyed in order to ensure that all other objects that depend on it have
99 // access to a valid pointer for the entirety of their lifetimes. 100 // access to a valid pointer for the entirety of their lifetimes.
(...skipping 13 matching lines...) Expand all
113 114
114 cc::mojom::FrameSinkManagerClientPtr client_; 115 cc::mojom::FrameSinkManagerClientPtr client_;
115 mojo::Binding<cc::mojom::FrameSinkManager> binding_; 116 mojo::Binding<cc::mojom::FrameSinkManager> binding_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager); 118 DISALLOW_COPY_AND_ASSIGN(MojoFrameSinkManager);
118 }; 119 };
119 120
120 } // namespace viz 121 } // namespace viz
121 122
122 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_ 123 #endif // COMPONENTS_VIZ_FRAME_SINKS_MOJO_FRAME_SINK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698