| Index: cc/test/fake_compositor_frame_sink_support_client.cc
|
| diff --git a/cc/test/fake_compositor_frame_sink_support_client.cc b/cc/test/fake_compositor_frame_sink_support_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ab502e84ae2e745862f9a56bb10da26ed6313328
|
| --- /dev/null
|
| +++ b/cc/test/fake_compositor_frame_sink_support_client.cc
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2017 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 "cc/test/fake_compositor_frame_sink_support_client.h"
|
| +
|
| +#include "cc/surfaces/surface_manager.h"
|
| +
|
| +namespace cc {
|
| +
|
| +FakeCompositorFrameSinkSupportClient::FakeCompositorFrameSinkSupportClient() =
|
| + default;
|
| +FakeCompositorFrameSinkSupportClient::~FakeCompositorFrameSinkSupportClient() =
|
| + default;
|
| +
|
| +void FakeCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck(
|
| + const ReturnedResourceArray& resources) {
|
| + returned_resources_ = resources;
|
| +}
|
| +
|
| +void FakeCompositorFrameSinkSupportClient::OnBeginFrame(
|
| + const BeginFrameArgs& args) {}
|
| +
|
| +void FakeCompositorFrameSinkSupportClient::ReclaimResources(
|
| + const ReturnedResourceArray& resources) {
|
| + returned_resources_ = resources;
|
| +}
|
| +
|
| +void FakeCompositorFrameSinkSupportClient::WillDrawSurface(
|
| + const LocalSurfaceId& local_surface_id,
|
| + const gfx::Rect& damage_rect) {
|
| + last_local_surface_id_ = local_surface_id;
|
| + last_damage_rect_ = damage_rect;
|
| +}
|
| +
|
| +}; // namespace cc
|
|
|