| Index: services/gfx/compositor/compositor_engine.cc
|
| diff --git a/services/gfx/compositor/compositor_engine.cc b/services/gfx/compositor/compositor_engine.cc
|
| index 9f3c4a76f4a21852370564c9b93316dda32ce472..276c4bfad8681912e56371db6d5da58e092957c0 100644
|
| --- a/services/gfx/compositor/compositor_engine.cc
|
| +++ b/services/gfx/compositor/compositor_engine.cc
|
| @@ -276,8 +276,13 @@ void CompositorEngine::HitTest(
|
| DCHECK(point);
|
| DVLOG(1) << "HitTest: renderer=" << renderer_state << ", point=" << point;
|
|
|
| - // TODO(jeffbrown): hit tests on scenes
|
| auto result = mojo::gfx::composition::HitTestResult::New();
|
| +
|
| + if (renderer_state->visible_snapshot()) {
|
| + DCHECK(!renderer_state->visible_snapshot()->is_blocked());
|
| + renderer_state->visible_snapshot()->HitTest(*point, result.get());
|
| + }
|
| +
|
| callback.Run(result.Pass());
|
| }
|
|
|
|
|