blob: 76653d39aa511e6ee3a1dec5e918020c9431b361 [file] [log] [blame]
// Copyright 2018 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 CONTENT_TEST_STUB_LAYER_TREE_VIEW_DELEGATE_H_
#define CONTENT_TEST_STUB_LAYER_TREE_VIEW_DELEGATE_H_
#include "content/renderer/gpu/layer_tree_view_delegate.h"
namespace cc {
struct ApplyViewportChangesArgs;
}
namespace content {
class StubLayerTreeViewDelegate : public LayerTreeViewDelegate {
public:
// LayerTreeViewDelegate implementation.
void ApplyViewportChanges(const cc::ApplyViewportChangesArgs&) override {}
void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
bool has_scrolled_by_touch) override {}
void BeginMainFrame(base::TimeTicks frame_time) override {}
void RecordEndOfFrameMetrics(base::TimeTicks) override {}
void RequestNewLayerTreeFrameSink(
LayerTreeFrameSinkCallback callback) override;
void DidCommitAndDrawCompositorFrame() override {}
void DidCommitCompositorFrame() override {}
void DidCompletePageScaleAnimation() override {}
void RequestScheduleAnimation() override {}
void UpdateVisualState(bool record_main_frame_metrics) override {}
void WillBeginCompositorFrame() override {}
std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForWebTest(
std::unique_ptr<viz::CopyOutputRequest> request) override;
};
} // namespace content
#endif // CONTENT_TEST_STUB_LAYER_TREE_VIEW_DELEGATE_H_