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

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

Issue 2031673002: Migrate WaitableEvent to enum-based constructor in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | 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/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 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after
5270 5270
5271 ScrollAndScaleSet info_; 5271 ScrollAndScaleSet info_;
5272 bool deltas_sent_to_client_; 5272 bool deltas_sent_to_client_;
5273 }; 5273 };
5274 5274
5275 MULTI_THREAD_TEST_F(LayerTreeHostAcceptsDeltasFromImplWithoutRootLayer); 5275 MULTI_THREAD_TEST_F(LayerTreeHostAcceptsDeltasFromImplWithoutRootLayer);
5276 5276
5277 class LayerTreeHostTestCrispUpAfterPinchEnds : public LayerTreeHostTest { 5277 class LayerTreeHostTestCrispUpAfterPinchEnds : public LayerTreeHostTest {
5278 protected: 5278 protected:
5279 LayerTreeHostTestCrispUpAfterPinchEnds() 5279 LayerTreeHostTestCrispUpAfterPinchEnds()
5280 : playback_allowed_event_(true, true) {} 5280 : playback_allowed_event_(base::WaitableEvent::ResetPolicy::MANUAL,
5281 base::WaitableEvent::InitialState::SIGNALED) {}
5281 5282
5282 void SetupTree() override { 5283 void SetupTree() override {
5283 frame_ = 1; 5284 frame_ = 1;
5284 posted_ = false; 5285 posted_ = false;
5285 client_.set_fill_with_nonsolid_color(true); 5286 client_.set_fill_with_nonsolid_color(true);
5286 5287
5287 scoped_refptr<Layer> root_clip = Layer::Create(); 5288 scoped_refptr<Layer> root_clip = Layer::Create();
5288 root_clip->SetBounds(gfx::Size(500, 500)); 5289 root_clip->SetBounds(gfx::Size(500, 500));
5289 scoped_refptr<Layer> page_scale_layer = Layer::Create(); 5290 scoped_refptr<Layer> page_scale_layer = Layer::Create();
5290 page_scale_layer->SetBounds(gfx::Size(500, 500)); 5291 page_scale_layer->SetBounds(gfx::Size(500, 500));
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
5572 FakeContentLayerClient client_; 5573 FakeContentLayerClient client_;
5573 gfx::Size viewport_size_; 5574 gfx::Size viewport_size_;
5574 }; 5575 };
5575 5576
5576 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationRasterizesBorderTiles); 5577 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationRasterizesBorderTiles);
5577 5578
5578 class LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles 5579 class LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles
5579 : public LayerTreeHostTest { 5580 : public LayerTreeHostTest {
5580 protected: 5581 protected:
5581 LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles() 5582 LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles()
5582 : playback_allowed_event_(true, true) {} 5583 : playback_allowed_event_(base::WaitableEvent::ResetPolicy::MANUAL,
5584 base::WaitableEvent::InitialState::SIGNALED) {}
5583 5585
5584 void SetupTree() override { 5586 void SetupTree() override {
5585 step_ = 1; 5587 step_ = 1;
5586 continuous_draws_ = 0; 5588 continuous_draws_ = 0;
5587 client_.set_fill_with_nonsolid_color(true); 5589 client_.set_fill_with_nonsolid_color(true);
5588 5590
5589 scoped_refptr<Layer> root_clip = Layer::Create(); 5591 scoped_refptr<Layer> root_clip = Layer::Create();
5590 root_clip->SetBounds(gfx::Size(500, 500)); 5592 root_clip->SetBounds(gfx::Size(500, 500));
5591 scoped_refptr<Layer> page_scale_layer = Layer::Create(); 5593 scoped_refptr<Layer> page_scale_layer = Layer::Create();
5592 page_scale_layer->SetBounds(gfx::Size(500, 500)); 5594 page_scale_layer->SetBounds(gfx::Size(500, 500));
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
6596 EndTest(); 6598 EndTest();
6597 } 6599 }
6598 6600
6599 void AfterTest() override {} 6601 void AfterTest() override {}
6600 }; 6602 };
6601 6603
6602 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor); 6604 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestPaintedDeviceScaleFactor);
6603 6605
6604 } // namespace 6606 } // namespace
6605 } // namespace cc 6607 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698