OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 float page_scale, | 165 float page_scale, |
166 float top_controls_delta) override; | 166 float top_controls_delta) override; |
167 void RequestNewOutputSurface() override; | 167 void RequestNewOutputSurface() override; |
168 void DidInitializeOutputSurface() override; | 168 void DidInitializeOutputSurface() override; |
169 void DidFailToInitializeOutputSurface() override; | 169 void DidFailToInitializeOutputSurface() override; |
170 void WillCommit() override; | 170 void WillCommit() override; |
171 void DidCommit() override; | 171 void DidCommit() override; |
172 void DidCommitAndDrawFrame() override; | 172 void DidCommitAndDrawFrame() override; |
173 void DidCompleteSwapBuffers() override; | 173 void DidCompleteSwapBuffers() override; |
174 void DidCompletePageScaleAnimation() override; | 174 void DidCompletePageScaleAnimation() override; |
175 void RecordFrameTimingEvents( | |
176 std::unique_ptr<cc::FrameTimingTracker::CompositeTimingSet> | |
177 composite_events, | |
178 std::unique_ptr<cc::FrameTimingTracker::MainFrameTimingSet> | |
179 main_frame_events) override; | |
180 | 175 |
181 // cc::LayerTreeHostSingleThreadClient implementation. | 176 // cc::LayerTreeHostSingleThreadClient implementation. |
182 void RequestScheduleAnimation() override; | 177 void RequestScheduleAnimation() override; |
183 void DidPostSwapBuffers() override; | 178 void DidPostSwapBuffers() override; |
184 void DidAbortSwapBuffers() override; | 179 void DidAbortSwapBuffers() override; |
185 | 180 |
186 // cc::RemoteProtoChannel implementation. | 181 // cc::RemoteProtoChannel implementation. |
187 void SetProtoReceiver(ProtoReceiver* receiver) override; | 182 void SetProtoReceiver(ProtoReceiver* receiver) override; |
188 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; | 183 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; |
189 | 184 |
(...skipping 27 matching lines...) Expand all Loading... |
217 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 212 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
218 | 213 |
219 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 214 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
220 | 215 |
221 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 216 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
222 }; | 217 }; |
223 | 218 |
224 } // namespace content | 219 } // namespace content |
225 | 220 |
226 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 221 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |