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

Side by Side Diff: cc/trees/layer_tree_host_unittest.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
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.h" 5 #include "cc/trees/layer_tree_host.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 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 int commit = layer_tree_host()->SourceFrameNumber(); 3002 int commit = layer_tree_host()->SourceFrameNumber();
3003 switch (commit) { 3003 switch (commit) {
3004 case 2: 3004 case 2:
3005 // Round 2 done. 3005 // Round 2 done.
3006 EXPECT_EQ(1, frame_); 3006 EXPECT_EQ(1, frame_);
3007 layer_tree_host()->SetNeedsRedraw(); 3007 layer_tree_host()->SetNeedsRedraw();
3008 break; 3008 break;
3009 } 3009 }
3010 } 3010 }
3011 3011
3012 void DidCompleteSwapBuffers() override { 3012 void DidReceiveCompositorFrameAck() override {
3013 int commit = layer_tree_host()->SourceFrameNumber(); 3013 int commit = layer_tree_host()->SourceFrameNumber();
3014 ++frame_; 3014 ++frame_;
3015 switch (frame_) { 3015 switch (frame_) {
3016 case 1: 3016 case 1:
3017 // Round 1 done. 3017 // Round 1 done.
3018 EXPECT_EQ(1, commit); 3018 EXPECT_EQ(1, commit);
3019 layer_tree_host()->SetNeedsCommit(); 3019 layer_tree_host()->SetNeedsCommit();
3020 break; 3020 break;
3021 case 2: 3021 case 2:
3022 // Round 3 done. 3022 // Round 3 done.
(...skipping 3985 matching lines...) Expand 10 before | Expand all | Expand 10 after
7008 EndTest(); 7008 EndTest();
7009 } 7009 }
7010 7010
7011 void AfterTest() override {} 7011 void AfterTest() override {}
7012 }; 7012 };
7013 7013
7014 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestSubmitFrameResources); 7014 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestSubmitFrameResources);
7015 7015
7016 } // namespace 7016 } // namespace
7017 } // namespace cc 7017 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_single_thread_client.h ('k') | cc/trees/layer_tree_host_unittest_remote_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698