| 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;
|
|
|
|
|