Chromium Code Reviews| Index: cc/test/empty_compositor_frame_sink_support_client.cc |
| diff --git a/cc/test/empty_compositor_frame_sink_support_client.cc b/cc/test/empty_compositor_frame_sink_support_client.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4c1a463c60806c08568bc681316aaa003a935dc5 |
| --- /dev/null |
| +++ b/cc/test/empty_compositor_frame_sink_support_client.cc |
| @@ -0,0 +1,32 @@ |
| +// 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/empty_compositor_frame_sink_support_client.h" |
| + |
| +#include "cc/surfaces/surface_manager.h" |
| + |
| +namespace cc { |
|
Fady Samuel
2017/04/05 21:32:42
nit: new line.
Alex Z.
2017/04/06 00:04:03
Done.
|
| +EmptyCompositorFrameSinkSupportClient::EmptyCompositorFrameSinkSupportClient() { |
| +} |
| + |
| +EmptyCompositorFrameSinkSupportClient:: |
| + ~EmptyCompositorFrameSinkSupportClient() {} |
| + |
| +void EmptyCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck() {} |
| + |
| +void EmptyCompositorFrameSinkSupportClient::OnBeginFrame( |
| + const BeginFrameArgs& args) {} |
| + |
| +void EmptyCompositorFrameSinkSupportClient::ReclaimResources( |
| + const ReturnedResourceArray& resources) { |
| + returned_resources_ = resources; |
| +} |
| + |
| +void EmptyCompositorFrameSinkSupportClient::WillDrawSurface( |
| + const LocalSurfaceId& local_surface_id, |
| + const gfx::Rect& damage_rect) { |
| + last_local_surface_id_ = local_surface_id; |
| + last_damage_rect_ = damage_rect; |
| +} |
|
Fady Samuel
2017/04/05 21:32:42
nit: new line.
Alex Z.
2017/04/06 00:04:03
Done.
|
| +}; // namespace cc |