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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl::draw_transform() Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« cc/trees/layer_tree_impl.h ('K') | « cc/trees/occlusion_tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index c8c7d4b12cd592d5acaa067813f7625fb373fdc5..bda7b9824baafa7661ade38d1e8d84a8b0a5c23b 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -60,7 +60,7 @@ class TestOcclusionTrackerWithClip : public TestOcclusionTracker {
bool OccludedLayer(const LayerImpl* layer,
const gfx::Rect& content_rect) const {
DCHECK(layer->visible_layer_rect().Contains(content_rect));
- return this->GetCurrentOcclusionForLayer(layer->draw_transform())
+ return this->GetCurrentOcclusionForLayer(layer->DrawTransform())
.IsOccluded(content_rect);
}
@@ -69,7 +69,7 @@ class TestOcclusionTrackerWithClip : public TestOcclusionTracker {
gfx::Rect UnoccludedLayerContentRect(const LayerImpl* layer,
const gfx::Rect& content_rect) const {
DCHECK(layer->visible_layer_rect().Contains(content_rect));
- return this->GetCurrentOcclusionForLayer(layer->draw_transform())
+ return this->GetCurrentOcclusionForLayer(layer->DrawTransform())
.GetUnoccludedContentRect(content_rect);
}
@@ -226,8 +226,10 @@ class OcclusionTrackerTest : public testing::Test {
FakeLayerTreeHostImpl::RecursiveUpdateNumChildren(root);
+ root->layer_tree_impl()->IncrementRenderSurfaceListIdForTesting();
LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs(
- root, root->bounds(), &render_surface_layer_list_impl_);
+ root, root->bounds(), &render_surface_layer_list_impl_,
+ root->layer_tree_impl()->current_render_surface_list_id());
inputs.can_adjust_raster_scales = true;
LayerTreeHostCommon::CalculateDrawProperties(&inputs);
« cc/trees/layer_tree_impl.h ('K') | « cc/trees/occlusion_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698