Index: components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc |
diff --git a/components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc b/components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc |
index 41bde869157a37b7bdcbe5f882b807a1971f8cef..01bbb9513d931a6aae1542774375898606bd5059 100644 |
--- a/components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc |
+++ b/components/viz/service/frame_sinks/gpu_root_compositor_frame_sink.cc |
@@ -6,6 +6,7 @@ |
#include <utility> |
+#include "base/command_line.h" |
#include "components/viz/service/display/display.h" |
#include "components/viz/service/frame_sinks/compositor_frame_sink_support.h" |
#include "components/viz/service/frame_sinks/frame_sink_manager.h" |
@@ -118,7 +119,9 @@ void GpuRootCompositorFrameSink::DisplayOutputSurfaceLost() { |
void GpuRootCompositorFrameSink::DisplayWillDrawAndSwap( |
bool will_draw_and_swap, |
- const cc::RenderPassList& render_pass) {} |
+ const cc::RenderPassList& render_pass) { |
+ hit_test_aggregator_.PostTaskAggregate(display_->CurrentSurfaceId()); |
+} |
void GpuRootCompositorFrameSink::DisplayDidDrawAndSwap() {} |
@@ -129,6 +132,7 @@ void GpuRootCompositorFrameSink::DidReceiveCompositorFrameAck( |
} |
void GpuRootCompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { |
+ hit_test_aggregator_.Swap(); |
if (client_) |
client_->OnBeginFrame(args); |
} |