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

Side by Side Diff: cc/trees/layer_tree_host_in_process.cc

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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
« no previous file with comments | « cc/trees/layer_tree_host_in_process.h ('k') | cc/trees/surface_sequence_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_in_process.h ('k') | cc/trees/surface_sequence_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698