blob: 66cf5d392985162adfde00c44f1c337bb239232e [file] [log] [blame]
// Copyright 2012 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 "base/single_thread_task_runner.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/proxy.h"
#include "cc/trees/render_frame_metadata_observer.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
namespace cc {
class PaintWorkletLayerPainter;
class FakeProxy : public Proxy {
FakeProxy() : layer_tree_host_(nullptr) {}
void SetLayerTreeHost(LayerTreeHost* host);
bool IsStarted() const override;
bool CommitToActiveTree() const override;
void SetLayerTreeFrameSink(
LayerTreeFrameSink* layer_tree_frame_sink) override {}
void ReleaseLayerTreeFrameSink() override {}
void SetVisible(bool visible) override {}
void SetNeedsAnimate() override {}
void SetNeedsUpdateLayers() override {}
void SetNeedsCommit() override {}
void SetNeedsRedraw(const gfx::Rect& damage_rect) override {}
void SetNextCommitWaitsForActivation() override {}
bool RequestedAnimatePending() override;
void NotifyInputThrottledUntilCommit() override {}
void SetDeferMainFrameUpdate(bool defer_main_frame_update) override {}
bool CommitRequested() const override;
void Start() override {}
void Stop() override {}
void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override;
void SetPaintWorkletLayerPainter(
std::unique_ptr<PaintWorkletLayerPainter> painter) override;
bool SupportsImplScrolling() const override;
bool MainFrameWillHappenForTesting() override;
void UpdateBrowserControlsState(BrowserControlsState constraints,
BrowserControlsState current,
bool animate) override {}
void RequestBeginMainFrameNotExpected(bool new_state) override {}
void SetURLForUkm(const GURL& url) override {}
void ClearHistory() override {}
void SetRenderFrameObserver(
std::unique_ptr<RenderFrameMetadataObserver> observer) override {}
LayerTreeHost* layer_tree_host_;
} // namespace cc