blob: bd9e8bd8605415d017a4d5e40da55ca15b9633cf [file] [log] [blame]
// Copyright 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 COMPONENTS_VIZ_HOST_HOST_FRAME_SINK_CLIENT_H_
#define COMPONENTS_VIZ_HOST_HOST_FRAME_SINK_CLIENT_H_
namespace viz {
class SurfaceInfo;
class HostFrameSinkClient {
public:
// Runs when a CompositorFrame is received for the given SurfaceInfo for the
// first time.
virtual void OnSurfaceCreated(const SurfaceInfo& surface_info) = 0;
protected:
virtual ~HostFrameSinkClient() {}
};
} // namespace viz
#endif // COMPONENTS_VIZ_HOST_HOST_FRAME_SINK_CLIENT_H_