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

Unified Diff: cc/surfaces/surface_hittest.cc

Issue 2676373004: Implement service-side surface synchronization (Closed)
Patch Set: Better unit test name Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/surfaces/surface_hittest.cc
diff --git a/cc/surfaces/surface_hittest.cc b/cc/surfaces/surface_hittest.cc
index ffc9f4c54ae5f03bed891effaff52b3ccd535eb8..88de04fc8fee5da462a5147c7417b8f299cb9c14 100644
--- a/cc/surfaces/surface_hittest.cc
+++ b/cc/surfaces/surface_hittest.cc
@@ -256,9 +256,9 @@ const RenderPass* SurfaceHittest::GetRenderPassForSurfaceById(
Surface* surface = manager_->GetSurfaceForId(surface_id);
if (!surface)
return nullptr;
- if (!surface->HasFrame())
+ if (!surface->HasActiveFrame())
return nullptr;
- const CompositorFrame& surface_frame = surface->GetEligibleFrame();
+ const CompositorFrame& surface_frame = surface->GetActiveFrame();
if (surface_frame.render_pass_list.empty())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698