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

Side by Side Diff: blimp/client/feature/compositor/mock_compositor_dependencies.cc

Issue 2297933002: blimp: Set up the CompositorDependencies for blimp in Chrome. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/client/feature/compositor/mock_compositor_dependencies.h" 5 #include "blimp/client/feature/compositor/mock_compositor_dependencies.h"
6 6
7 #include "cc/test/test_in_process_context_provider.h" 7 #include "cc/test/test_in_process_context_provider.h"
8 8
9 namespace blimp { 9 namespace blimp {
10 namespace client { 10 namespace client {
11 11
12 void MockCompositorDependencies::GetContextProvider( 12 void MockCompositorDependencies::GetContextProviders(
13 const ContextProviderCallback& callback) { 13 const ContextProviderCallback& callback) {
14 scoped_refptr<cc::ContextProvider> provider = 14 ContextProviders context_providers;
15 context_providers.compositor_context_provider =
15 make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr)); 16 make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr));
16 callback.Run(provider); 17 context_providers.worker_context_provider =
18 make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr));
19 callback.Run(context_providers);
17 } 20 }
18 21
19 } // namespace client 22 } // namespace client
20 } // namespace blimp 23 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698