blob: 6f83ed541633cacd56c8e88e0d21065b645335d5 [file] [log] [blame]
// Copyright 2016 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.
#include <unordered_map>
#include "base/macros.h"
#include "cc/base/cc_export.h"
namespace gfx {
class ScrollOffset;
} // namespace gfx
namespace cc {
namespace proto {
class ClientStateUpdate;
} // namespace proto
class CompositorProtoState;
class CC_EXPORT RemoteCompositorBridgeClient {
using ScrollOffsetMap = std::unordered_map<int, gfx::ScrollOffset>;
virtual ~RemoteCompositorBridgeClient() {}
// Called in response to a ScheduleMainFrame request made on the
// RemoteCompositorBridge.
// Note: The method should always be invoked asynchronously after the request
// is made.
virtual void BeginMainFrame() = 0;
// Applied state updates reported from the client onto the main thread state
// on the engine.
virtual void ApplyStateUpdateFromClient(
const proto::ClientStateUpdate& client_state_update) = 0;
} // namespace cc