blob: ff155ae4b2f8a0e9c21998f909861339c2ced1a2 [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 "services/metrics/public/cpp/ukm_recorder.h"
namespace cc {
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 {}
void NotifyInputThrottledUntilCommit() override {}
void SetDeferCommits(bool defer_commits) override {}
void MainThreadHasStoppedFlinging() override {}
bool CommitRequested() const override;
void Start() override {}
void Stop() override {}
void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) 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 ClearHistoryOnNavigation() override {}
LayerTreeHost* layer_tree_host_;
} // namespace cc