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

Unified Diff: cc/surfaces/surface_hittest.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests Created 4 years, 6 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
« no previous file with comments | « cc/surfaces/surface_factory_unittest.cc ('k') | cc/surfaces/surface_hittest_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_hittest.cc
diff --git a/cc/surfaces/surface_hittest.cc b/cc/surfaces/surface_hittest.cc
index b9be19e3e827a03e5bd02b34f08e886f89824ecf..b56f976bbee708c743aceb3c7bf15dc3836f2952 100644
--- a/cc/surfaces/surface_hittest.cc
+++ b/cc/surfaces/surface_hittest.cc
@@ -234,12 +234,12 @@ const RenderPass* SurfaceHittest::GetRenderPassForSurfaceById(
if (!surface)
return nullptr;
- const CompositorFrame* surface_frame = surface->GetEligibleFrame();
- if (!surface_frame)
+ const CompositorFrame& surface_frame = surface->GetEligibleFrame();
+ if (!surface_frame.delegated_frame_data)
return nullptr;
const DelegatedFrameData* frame_data =
- surface_frame->delegated_frame_data.get();
+ surface_frame.delegated_frame_data.get();
if (frame_data->render_pass_list.empty())
return nullptr;
« no previous file with comments | « cc/surfaces/surface_factory_unittest.cc ('k') | cc/surfaces/surface_hittest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698