Index: cc/trees/occlusion_tracker.cc |
diff --git a/cc/trees/occlusion_tracker.cc b/cc/trees/occlusion_tracker.cc |
index 250ac4d00877151d3659c5018d997446ae66a739..4bcb7625353a0d171df2467991d616ede8a92508 100644 |
--- a/cc/trees/occlusion_tracker.cc |
+++ b/cc/trees/occlusion_tracker.cc |
@@ -174,7 +174,7 @@ void OcclusionTracker::FinishedRenderTarget(const LayerImpl* finished_target) { |
// Readbacks always happen on render targets so we only need to check |
// for readbacks here. |
bool target_is_only_for_copy_request = |
- finished_target->HasCopyRequest() && finished_target->LayerIsHidden(); |
+ finished_target->HasCopyRequest() && finished_target->IsHidden(); |
// If the occlusion within the surface can not be applied to things outside of |
// the surface's subtree, then clear the occlusion here so it won't be used. |