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

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

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the LTI variable Created 7 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 | Annotate | Revision Log
« cc/layers/picture_layer_impl.cc ('K') | « cc/trees/layer_tree_impl.cc ('k') | 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 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/occlusion_tracker.h" 5 #include "cc/trees/occlusion_tracker.h"
6 6
7 #include "cc/animation/layer_animation_controller.h" 7 #include "cc/animation/layer_animation_controller.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/debug/overdraw_metrics.h" 9 #include "cc/debug/overdraw_metrics.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 DCHECK(!root->render_surface()); 314 DCHECK(!root->render_surface());
315 315
316 LayerTreeHostCommon::CalculateDrawProperties( 316 LayerTreeHostCommon::CalculateDrawProperties(
317 root, 317 root,
318 root->bounds(), 318 root->bounds(),
319 1.f, 319 1.f,
320 1.f, 320 1.f,
321 dummy_max_texture_size, 321 dummy_max_texture_size,
322 false, 322 false,
323 &render_surface_layer_list_impl_, 323 &render_surface_layer_list_impl_);
324 false);
325 324
326 layer_iterator_ = layer_iterator_begin_ = 325 layer_iterator_ = layer_iterator_begin_ =
327 Types::TestLayerIterator::Begin(&render_surface_layer_list_impl_); 326 Types::TestLayerIterator::Begin(&render_surface_layer_list_impl_);
328 } 327 }
329 328
330 void CalcDrawEtc(TestContentLayer* root) { 329 void CalcDrawEtc(TestContentLayer* root) {
331 DCHECK(root == root_.get()); 330 DCHECK(root == root_.get());
332 int dummy_max_texture_size = 512; 331 int dummy_max_texture_size = 512;
333 332
334 DCHECK(!root->render_surface()); 333 DCHECK(!root->render_surface());
(...skipping 4200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4535 gfx::Rect(0, 0, 100, 100), 4534 gfx::Rect(0, 0, 100, 100),
4536 &has_occlusion_from_outside_target_surface)); 4535 &has_occlusion_from_outside_target_surface));
4537 EXPECT_FALSE(has_occlusion_from_outside_target_surface); 4536 EXPECT_FALSE(has_occlusion_from_outside_target_surface);
4538 } 4537 }
4539 }; 4538 };
4540 4539
4541 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipIsExternalOcclusion) 4540 ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestLayerClipIsExternalOcclusion)
4542 4541
4543 } // namespace 4542 } // namespace
4544 } // namespace cc 4543 } // namespace cc
OLDNEW
« cc/layers/picture_layer_impl.cc ('K') | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698