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

Unified Diff: cc/test/fake_compositor_frame_sink_client.cc

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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_client.h ('k') | cc/test/fake_layer_tree_host_client.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_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
« no previous file with comments | « cc/test/fake_compositor_frame_sink_client.h ('k') | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698