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

Unified Diff: blimp/client/feature/compositor/mock_compositor_dependencies.cc

Issue 2274323002: Expose Blimp dependencies to the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@khushal_baseline_1
Patch Set: Fix linux build break Created 4 years, 4 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 | « blimp/client/feature/compositor/mock_compositor_dependencies.h ('k') | blimp/client/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/feature/compositor/mock_compositor_dependencies.cc
diff --git a/blimp/client/feature/compositor/mock_compositor_dependencies.cc b/blimp/client/feature/compositor/mock_compositor_dependencies.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c6f1ff4ffd28e3a9edb22226e767691eb148de7a
--- /dev/null
+++ b/blimp/client/feature/compositor/mock_compositor_dependencies.cc
@@ -0,0 +1,20 @@
+// Copyright 2016 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 "blimp/client/feature/compositor/mock_compositor_dependencies.h"
+
+#include "cc/test/test_in_process_context_provider.h"
+
+namespace blimp {
+namespace client {
+
+void MockCompositorDependencies::GetContextProvider(
+ const ContextProviderCallback& callback) {
+ scoped_refptr<cc::ContextProvider> provider =
+ make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr));
+ callback.Run(provider);
+}
+
+} // namespace client
+} // namespace blimp
« no previous file with comments | « blimp/client/feature/compositor/mock_compositor_dependencies.h ('k') | blimp/client/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698