blob: 341d54142eb8c91b6fa25024cfe6bd32a49178b1 [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"
namespace cc {
class FakeProxy : public Proxy {
FakeProxy() : layer_tree_host_(nullptr) {}
void SetLayerTreeHost(LayerTreeHost* host);
void FinishAllRendering() override {}
bool IsStarted() const override;
bool CommitToActiveTree() const override;
void SetOutputSurface(OutputSurface* output_surface) override {}
void ReleaseOutputSurface() override;
void SetVisible(bool visible) override {}
void SetThrottleFrameProduction(bool throttle) override {}
const RendererCapabilities& GetRendererCapabilities() const 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 BeginMainFrameRequested() const override;
bool CommitRequested() const override;
void Start(
scoped_ptr<BeginFrameSource> external_begin_frame_source) override {}
void Stop() override {}
bool SupportsImplScrolling() const override;
bool MainFrameWillHappenForTesting() override;
void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override {}
void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override {
void UpdateTopControlsState(TopControlsState constraints,
TopControlsState current,
bool animate) override {}
virtual RendererCapabilities& GetRendererCapabilities();
RendererCapabilities capabilities_;
LayerTreeHost* layer_tree_host_;
} // namespace cc