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

Side by Side Diff: cc/test/layer_tree_test.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/test/layer_tree_host_remote_for_testing.cc ('k') | cc/test/scheduler_test_common.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/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 313 }
314 314
315 void WillCommit() override { test_hooks_->WillCommit(); } 315 void WillCommit() override { test_hooks_->WillCommit(); }
316 316
317 void DidCommit() override { test_hooks_->DidCommit(); } 317 void DidCommit() override { test_hooks_->DidCommit(); }
318 318
319 void DidCommitAndDrawFrame() override { 319 void DidCommitAndDrawFrame() override {
320 test_hooks_->DidCommitAndDrawFrame(); 320 test_hooks_->DidCommitAndDrawFrame();
321 } 321 }
322 322
323 void DidCompleteSwapBuffers() override { 323 void DidReceiveCompositorFrameAck() override {
324 test_hooks_->DidCompleteSwapBuffers(); 324 test_hooks_->DidReceiveCompositorFrameAck();
325 } 325 }
326 326
327 void DidPostSwapBuffers() override {} 327 void DidPostSwapBuffers() override {}
328 void DidAbortSwapBuffers() override {} 328 void DidAbortSwapBuffers() override {}
329 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } 329 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); }
330 void DidCompletePageScaleAnimation() override {} 330 void DidCompletePageScaleAnimation() override {}
331 void BeginMainFrameNotExpectedSoon() override { 331 void BeginMainFrameNotExpectedSoon() override {
332 test_hooks_->BeginMainFrameNotExpectedSoon(); 332 test_hooks_->BeginMainFrameNotExpectedSoon();
333 } 333 }
334 334
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 DCHECK(!IsRemoteTest()); 929 DCHECK(!IsRemoteTest());
930 return layer_tree_host_in_process_; 930 return layer_tree_host_in_process_;
931 } 931 }
932 932
933 Proxy* LayerTreeTest::proxy() { 933 Proxy* LayerTreeTest::proxy() {
934 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy() 934 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy()
935 : NULL; 935 : NULL;
936 } 936 }
937 937
938 } // namespace cc 938 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_host_remote_for_testing.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698