OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #include "cc/trees/layer_tree_host_in_process.h" | 5 #include "cc/trees/layer_tree_host_in_process.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 } | 367 } |
368 | 368 |
369 SwapPromiseManager* LayerTreeHostInProcess::GetSwapPromiseManager() { | 369 SwapPromiseManager* LayerTreeHostInProcess::GetSwapPromiseManager() { |
370 return &swap_promise_manager_; | 370 return &swap_promise_manager_; |
371 } | 371 } |
372 | 372 |
373 const LayerTreeSettings& LayerTreeHostInProcess::GetSettings() const { | 373 const LayerTreeSettings& LayerTreeHostInProcess::GetSettings() const { |
374 return settings_; | 374 return settings_; |
375 } | 375 } |
376 | 376 |
377 void LayerTreeHostInProcess::SetSurfaceClientId(uint32_t client_id) { | 377 void LayerTreeHostInProcess::SetFrameSinkId(const FrameSinkId& frame_sink_id) { |
378 surface_sequence_generator_.set_surface_client_id(client_id); | 378 surface_sequence_generator_.set_frame_sink_id(frame_sink_id); |
379 } | 379 } |
380 | 380 |
381 void LayerTreeHostInProcess::QueueSwapPromise( | 381 void LayerTreeHostInProcess::QueueSwapPromise( |
382 std::unique_ptr<SwapPromise> swap_promise) { | 382 std::unique_ptr<SwapPromise> swap_promise) { |
383 swap_promise_manager_.QueueSwapPromise(std::move(swap_promise)); | 383 swap_promise_manager_.QueueSwapPromise(std::move(swap_promise)); |
384 } | 384 } |
385 | 385 |
386 SurfaceSequenceGenerator* | 386 SurfaceSequenceGenerator* |
387 LayerTreeHostInProcess::GetSurfaceSequenceGenerator() { | 387 LayerTreeHostInProcess::GetSurfaceSequenceGenerator() { |
388 return &surface_sequence_generator_; | 388 return &surface_sequence_generator_; |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 | 1027 |
1028 debug_state_.FromProtobuf(proto.debug_state()); | 1028 debug_state_.FromProtobuf(proto.debug_state()); |
1029 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); | 1029 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); |
1030 content_is_suitable_for_gpu_rasterization_ = | 1030 content_is_suitable_for_gpu_rasterization_ = |
1031 proto.content_is_suitable_for_gpu_rasterization(); | 1031 proto.content_is_suitable_for_gpu_rasterization(); |
1032 id_ = proto.id(); | 1032 id_ = proto.id(); |
1033 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); | 1033 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); |
1034 } | 1034 } |
1035 | 1035 |
1036 } // namespace cc | 1036 } // namespace cc |
OLD | NEW |