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

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

Issue 2899403003: cc: Give non-drawing layers that are rasterized a lower priority. (Closed)
Patch Set: .. Created 3 years, 7 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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 12395 matching lines...) Expand 10 before | Expand all | Expand 10 after
12406 if (tile->tiling_i_index() < 2 && tile->tiling_j_index() < 2) 12406 if (tile->tiling_i_index() < 2 && tile->tiling_j_index() < 2)
12407 EXPECT_TRUE(tile->HasRasterTask()); 12407 EXPECT_TRUE(tile->HasRasterTask());
12408 else 12408 else
12409 EXPECT_FALSE(tile->HasRasterTask()); 12409 EXPECT_FALSE(tile->HasRasterTask());
12410 } 12410 }
12411 Region expected_invalidation( 12411 Region expected_invalidation(
12412 raster_source->GetRectForImage(checkerable_image.stable_id())); 12412 raster_source->GetRectForImage(checkerable_image.stable_id()));
12413 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); 12413 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation()));
12414 } 12414 }
12415 12415
12416 TEST_F(LayerTreeHostImplTest, RasterTilePrioritizationForNonDrawingLayers) {
12417 host_impl_->SetViewportSize(gfx::Size(500, 500));
12418 }
12419
12416 } // namespace 12420 } // namespace
12417 } // namespace cc 12421 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698