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

Unified Diff: cc/test/stub_surface_factory_client.h

Issue 2824053003: Split SurfaceFactoryClient Into Four Interfaces (Closed)
Patch Set: Address Nits 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_surface_resource_holder_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/stub_surface_factory_client.h
diff --git a/cc/test/stub_surface_factory_client.h b/cc/test/stub_surface_factory_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b1df0f654b197947dca3ef416e4bfa4d33ca2a6
--- /dev/null
+++ b/cc/test/stub_surface_factory_client.h
@@ -0,0 +1,24 @@
+// 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.
+
+#ifndef CC_TEST_STUB_SURFACE_FACTORY_CLIENT_H_
+#define CC_TEST_STUB_SURFACE_FACTORY_CLIENT_H_
+
+#include "cc/surfaces/surface_factory_client.h"
+
+namespace cc {
+
+class StubSurfaceFactoryClient : public SurfaceFactoryClient {
+ public:
+ StubSurfaceFactoryClient() = default;
+ ~StubSurfaceFactoryClient() override = default;
+
+ void ReferencedSurfacesChanged(
+ const LocalSurfaceId& local_surface_id,
+ const std::vector<SurfaceId>* active_referenced_surfaces) override {}
+};
+
+} // namespace cc
+
+#endif // CC_TEST_STUB_SURFACE_FACTORY_CLIENT_H_
« no previous file with comments | « cc/test/fake_surface_resource_holder_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698