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

Side by Side Diff: cc/test/layer_tree_host_remote_for_testing.cc

Issue 2494623002: cc: Remove client/engine LayerTreeHostInProcess. (Closed)
Patch Set: .. 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
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/test/layer_tree_test.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 2016 The Chromium Authors. All rights reserved. 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 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/test/layer_tree_host_remote_for_testing.h" 5 #include "cc/test/layer_tree_host_remote_for_testing.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/animation/animation_host.h" 8 #include "cc/animation/animation_host.h"
9 #include "cc/blimp/compositor_proto_state.h" 9 #include "cc/blimp/compositor_proto_state.h"
10 #include "cc/blimp/compositor_state_deserializer.h" 10 #include "cc/blimp/compositor_state_deserializer.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void BeginMainFrame(const BeginFrameArgs& args) override { 65 void BeginMainFrame(const BeginFrameArgs& args) override {
66 layer_tree_host_remote_->BeginRemoteMainFrame(); 66 layer_tree_host_remote_->BeginRemoteMainFrame();
67 } 67 }
68 void BeginMainFrameNotExpectedSoon() override {} 68 void BeginMainFrameNotExpectedSoon() override {}
69 void DidBeginMainFrame() override {} 69 void DidBeginMainFrame() override {}
70 void UpdateLayerTreeHost() override {} 70 void UpdateLayerTreeHost() override {}
71 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 71 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
72 const gfx::Vector2dF& outer_delta, 72 const gfx::Vector2dF& outer_delta,
73 const gfx::Vector2dF& elastic_overscroll_delta, 73 const gfx::Vector2dF& elastic_overscroll_delta,
74 float page_scale, 74 float page_scale,
75 float top_controls_delta) override {} 75 float top_controls_delta) override {
76 layer_tree_host_remote_->compositor_state_deserializer_
77 ->ApplyViewportDeltas(inner_delta, outer_delta,
78 elastic_overscroll_delta, page_scale,
79 top_controls_delta);
80 }
76 void RequestNewCompositorFrameSink() override { 81 void RequestNewCompositorFrameSink() override {
77 layer_tree_host_remote_->client()->RequestNewCompositorFrameSink(); 82 layer_tree_host_remote_->client()->RequestNewCompositorFrameSink();
78 } 83 }
79 void DidInitializeCompositorFrameSink() override { 84 void DidInitializeCompositorFrameSink() override {
80 layer_tree_host_remote_->client()->DidInitializeCompositorFrameSink(); 85 layer_tree_host_remote_->client()->DidInitializeCompositorFrameSink();
81 } 86 }
82 void DidFailToInitializeCompositorFrameSink() override { 87 void DidFailToInitializeCompositorFrameSink() override {
83 layer_tree_host_remote_->client()->DidFailToInitializeCompositorFrameSink(); 88 layer_tree_host_remote_->client()->DidFailToInitializeCompositorFrameSink();
84 } 89 }
85 void WillCommit() override {} 90 void WillCommit() override {}
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 304 }
300 305
301 // The only case where the remote host would give a compositor update is if 306 // The only case where the remote host would give a compositor update is if
302 // they wanted the main frame to go till the commit pipeline stage. So 307 // they wanted the main frame to go till the commit pipeline stage. So
303 // request one to make sure that the in process main frame also goes till 308 // request one to make sure that the in process main frame also goes till
304 // the commit step. 309 // the commit step.
305 layer_tree_host_in_process_->SetNeedsCommit(); 310 layer_tree_host_in_process_->SetNeedsCommit();
306 } 311 }
307 312
308 } // namespace cc 313 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698