| Index: services/ui/public/cpp/window_compositor_frame_sink.cc
|
| diff --git a/services/ui/public/cpp/window_compositor_frame_sink.cc b/services/ui/public/cpp/window_compositor_frame_sink.cc
|
| index 2d893733bc679977bfcb12a1fc7e36f8cc5ca5be..9db286b2dcb9d1bc37c453572395c61d4623a723 100644
|
| --- a/services/ui/public/cpp/window_compositor_frame_sink.cc
|
| +++ b/services/ui/public/cpp/window_compositor_frame_sink.cc
|
| @@ -5,6 +5,7 @@
|
| #include "services/ui/public/cpp/window_compositor_frame_sink.h"
|
|
|
| #include "base/bind.h"
|
| +#include "cc/output/begin_frame_args.h"
|
| #include "cc/output/compositor_frame.h"
|
| #include "cc/output/compositor_frame_sink_client.h"
|
| #include "gpu/ipc/client/gpu_channel_host.h"
|
| @@ -104,6 +105,12 @@ void WindowCompositorFrameSink::OnBeginFrame(
|
| begin_frame_source_->OnBeginFrame(begin_frame_args);
|
| }
|
|
|
| +void WindowCompositorFrameSink::OnDidFinishFrame(const cc::BeginFrameAck& ack) {
|
| + // If there was damage, SubmitCompositorFrame serves as ack.
|
| + if (!ack.has_damage)
|
| + compositor_frame_sink_->BeginFrameDidNotDraw(ack);
|
| +}
|
| +
|
| void WindowCompositorFrameSink::ReclaimResources(
|
| const cc::ReturnedResourceArray& resources) {
|
| DCHECK(thread_checker_);
|
|
|