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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase 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_unittest.cc ('k') | cc/trees/proxy_impl.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 <memory> 5 #include <memory>
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "cc/animation/animation_host.h" 9 #include "cc/animation/animation_host.h"
10 #include "cc/test/fake_image_serialization_processor.h" 10 #include "cc/test/fake_image_serialization_processor.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const gfx::Vector2dF& outer_delta, 51 const gfx::Vector2dF& outer_delta,
52 const gfx::Vector2dF& elastic_overscroll_delta, 52 const gfx::Vector2dF& elastic_overscroll_delta,
53 float page_scale, 53 float page_scale,
54 float top_controls_delta) override {} 54 float top_controls_delta) override {}
55 void RequestNewCompositorFrameSink() override { NOTREACHED(); } 55 void RequestNewCompositorFrameSink() override { NOTREACHED(); }
56 void DidInitializeCompositorFrameSink() override { NOTREACHED(); } 56 void DidInitializeCompositorFrameSink() override { NOTREACHED(); }
57 void DidFailToInitializeCompositorFrameSink() override { NOTREACHED(); } 57 void DidFailToInitializeCompositorFrameSink() override { NOTREACHED(); }
58 void WillCommit() override {} 58 void WillCommit() override {}
59 void DidCommit() override {} 59 void DidCommit() override {}
60 void DidCommitAndDrawFrame() override {} 60 void DidCommitAndDrawFrame() override {}
61 void DidCompleteSwapBuffers() override {} 61 void DidReceiveCompositorFrameAck() override {}
62 void DidCompletePageScaleAnimation() override {} 62 void DidCompletePageScaleAnimation() override {}
63 63
64 // RemoteProtoChannel implementation 64 // RemoteProtoChannel implementation
65 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { 65 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override {
66 receiver_ = receiver; 66 receiver_ = receiver;
67 } 67 }
68 void SendCompositorProto(const proto::CompositorMessage& proto) override {} 68 void SendCompositorProto(const proto::CompositorMessage& proto) override {}
69 69
70 int calls_received_; 70 int calls_received_;
71 TestTaskGraphRunner task_graph_runner_; 71 TestTaskGraphRunner task_graph_runner_;
(...skipping 24 matching lines...) Expand all
96 begin_frame_state.reset(new BeginMainFrameAndCommitState()); 96 begin_frame_state.reset(new BeginMainFrameAndCommitState());
97 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); 97 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet());
98 98
99 static_cast<ProxyMain*>(layer_tree_host_->proxy()) 99 static_cast<ProxyMain*>(layer_tree_host_->proxy())
100 ->BeginMainFrame(std::move(begin_frame_state)); 100 ->BeginMainFrame(std::move(begin_frame_state));
101 EXPECT_EQ(calls_received_, 1); 101 EXPECT_EQ(calls_received_, 1);
102 } 102 }
103 103
104 } // namespace 104 } // namespace
105 } // namespace cc 105 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698