| Index: cc/test/fake_compositor_frame_sink_client.cc
|
| diff --git a/cc/test/fake_compositor_frame_sink_client.cc b/cc/test/fake_compositor_frame_sink_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e7ad846539f74e2190e2e0a86cfca9b5f26876f
|
| --- /dev/null
|
| +++ b/cc/test/fake_compositor_frame_sink_client.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2013 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/output/compositor_frame_sink.h"
|
| +#include "cc/test/fake_compositor_frame_sink_client.h"
|
| +
|
| +namespace cc {
|
| +
|
| +void FakeCompositorFrameSinkClient::DidSwapBuffersComplete() {
|
| + swap_count_++;
|
| +}
|
| +
|
| +void FakeCompositorFrameSinkClient::DidLoseCompositorFrameSink() {
|
| + did_lose_compositor_frame_sink_called_ = true;
|
| +}
|
| +
|
| +void FakeCompositorFrameSinkClient::SetMemoryPolicy(
|
| + const ManagedMemoryPolicy& policy) {
|
| + memory_policy_ = policy;
|
| +}
|
| +
|
| +} // namespace cc
|
|
|