Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "cc/output/context_provider.h" | |
| 6 #include "cc/output/vulkan_in_process_context_provider.h" | |
| 7 #include "ui/android/context_provider_factory.h" | |
|
no sievers
2016/07/29 19:14:31
nit: put this include at the top with an empty lin
| |
| 8 | |
| 9 namespace ui { | |
| 10 | |
| 11 ContextProviderFactory* g_context_provider_factory = nullptr; | |
| 12 | |
| 13 // static | |
| 14 ContextProviderFactory* ContextProviderFactory::GetInstance() { | |
| 15 return g_context_provider_factory; | |
| 16 } | |
| 17 | |
| 18 // static | |
| 19 void ContextProviderFactory::SetInstance( | |
| 20 ContextProviderFactory* context_provider_factory) { | |
| 21 DCHECK(!g_context_provider_factory); | |
| 22 | |
| 23 g_context_provider_factory = context_provider_factory; | |
| 24 } | |
| 25 | |
| 26 ContextProviderFactory::ContextProviders::ContextProviders() = default; | |
| 27 | |
| 28 ContextProviderFactory::ContextProviders::~ContextProviders() = default; | |
| 29 | |
| 30 } // namespace ui | |
| OLD | NEW |