Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3113)

Unified Diff: cc/test/fake_compositor_frame_sink_support_client.cc

Issue 2795683003: [cc]Replace use of SurfaceFactory with CompositorFrameSinkSupport in tests (Closed)
Patch Set: Update returned_resources_ in FakeCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_compositor_frame_sink_support_client.h ('k') | cc/test/surface_hittest_test_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/test/fake_compositor_frame_sink_support_client.h ('k') | cc/test/surface_hittest_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698