blob: 7083c6e742d6a5065474c14ea79fed7853d8da2e [file] [log] [blame]
// Copyright (c) 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COMPOSITOR_EXTERNAL_BEGIN_FRAME_CLIENT_H_
#define UI_COMPOSITOR_EXTERNAL_BEGIN_FRAME_CLIENT_H_
#include "components/viz/common/frame_sinks/begin_frame_args.h"
#include "ui/compositor/compositor_export.h"
namespace ui {
class COMPOSITOR_EXPORT ExternalBeginFrameClient {
public:
virtual ~ExternalBeginFrameClient() {}
// Called when a BeginFrame was completed by the Display.
virtual void OnDisplayDidFinishFrame(const viz::BeginFrameAck& ack) = 0;
// Called to signal whether the client should generate BeginFrames.
virtual void OnNeedsExternalBeginFrames(bool needs_begin_frames) = 0;
};
} // namespace ui
#endif // UI_COMPOSITOR_EXTERNAL_BEGIN_FRAME_CLIENT_H_