OLD | NEW |
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/support/compositor/mock_compositor_dependencies.h" | 5 #include "blimp/client/support/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 callback.Run( |
15 make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr)); | 15 make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr)), |
16 callback.Run(provider); | 16 make_scoped_refptr(new cc::TestInProcessContextProvider(nullptr))); |
17 } | 17 } |
18 | 18 |
19 } // namespace client | 19 } // namespace client |
20 } // namespace blimp | 20 } // namespace blimp |
OLD | NEW |