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

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

Issue 2208693003: Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 case 3: 190 case 3:
191 // The fourth frame has no visible damage, so we should not draw and 191 // The fourth frame has no visible damage, so we should not draw and
192 // swap. 192 // swap.
193 EXPECT_TRUE(frame_data->has_no_damage); 193 EXPECT_TRUE(frame_data->has_no_damage);
194 EndTest(); 194 EndTest();
195 break; 195 break;
196 } 196 }
197 return draw_result; 197 return draw_result;
198 } 198 }
199 199
200 void DisplayDidDrawAndSwapOnThread() override { 200 void SwapBuffersCompleteOnThread() override {
201 ++did_swap_; 201 ++did_swap_;
202 EXPECT_EQ(expect_swap_, did_swap_); 202 EXPECT_EQ(expect_swap_, did_swap_);
203 } 203 }
204 204
205 void DidCommit() override { 205 void DidCommit() override {
206 int next_frame = layer_tree_host()->source_frame_number(); 206 int next_frame = layer_tree_host()->source_frame_number();
207 switch (next_frame) { 207 switch (next_frame) {
208 case 1: 208 case 1:
209 layer_tree_host()->SetNeedsCommit(); 209 layer_tree_host()->SetNeedsCommit();
210 break; 210 break;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 void AfterTest() override { EXPECT_EQ(3, num_draws_); } 521 void AfterTest() override { EXPECT_EQ(3, num_draws_); }
522 522
523 int num_draws_; 523 int num_draws_;
524 }; 524 };
525 525
526 MULTI_THREAD_TEST_F(LayerTreeHostDamageTestScrollbarCommitDoesNoDamage); 526 MULTI_THREAD_TEST_F(LayerTreeHostDamageTestScrollbarCommitDoesNoDamage);
527 527
528 } // namespace 528 } // namespace
529 } // namespace cc 529 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698