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

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

Issue 2566613002: [4/5] Add translated rasterization support for PictureLayerTilingSet & below (Closed)
Patch Set: still need that rebaseline Created 3 years, 8 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_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_picture.cc » ('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/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 6015 matching lines...) Expand 10 before | Expand all | Expand 10 after
6026 break; 6026 break;
6027 } 6027 }
6028 } 6028 }
6029 6029
6030 void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl, 6030 void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl,
6031 const Tile* tile) override { 6031 const Tile* tile) override {
6032 if (frame_ == 3) { 6032 if (frame_ == 3) {
6033 // On frame 3, we will have a lower res tile complete for the pinch-out 6033 // On frame 3, we will have a lower res tile complete for the pinch-out
6034 // gesture even though it's not displayed. We wait for it here to prevent 6034 // gesture even though it's not displayed. We wait for it here to prevent
6035 // flakiness. 6035 // flakiness.
6036 EXPECT_EQ(0.75f, tile->contents_scale()); 6036 EXPECT_EQ(gfx::AxisTransform2d(0.75f, gfx::Vector2dF()),
6037 tile->raster_transform());
6037 PostNextAfterDraw(host_impl); 6038 PostNextAfterDraw(host_impl);
6038 } 6039 }
6039 // On frame_ == 4, we are preventing texture uploads from completing, 6040 // On frame_ == 4, we are preventing texture uploads from completing,
6040 // so this verifies they are not completing before frame_ == 5. 6041 // so this verifies they are not completing before frame_ == 5.
6041 // Flaky failures here indicate we're failing to prevent uploads from 6042 // Flaky failures here indicate we're failing to prevent uploads from
6042 // completing. 6043 // completing.
6043 EXPECT_NE(4, frame_) << tile->contents_scale(); 6044 EXPECT_NE(4, frame_) << tile->contents_scale_key();
6044 } 6045 }
6045 6046
6046 void AfterTest() override {} 6047 void AfterTest() override {}
6047 6048
6048 FakeContentLayerClient client_; 6049 FakeContentLayerClient client_;
6049 int frame_; 6050 int frame_;
6050 bool posted_; 6051 bool posted_;
6051 base::WaitableEvent playback_allowed_event_; 6052 base::WaitableEvent playback_allowed_event_;
6052 }; 6053 };
6053 6054
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
7492 DCHECK_EQ(hud->scroll_tree_index(), root_layer->scroll_tree_index()); 7493 DCHECK_EQ(hud->scroll_tree_index(), root_layer->scroll_tree_index());
7493 } 7494 }
7494 7495
7495 void AfterTest() override {} 7496 void AfterTest() override {}
7496 }; 7497 };
7497 7498
7498 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestHudLayerWithLayerLists); 7499 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestHudLayerWithLayerLists);
7499 7500
7500 } // namespace 7501 } // namespace
7501 } // namespace cc 7502 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698