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

Side by Side Diff: ui/android/context_provider_factory.cc

Issue 2190033002: content: Add ContextProviderFactory to create a render ContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: .. 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 unified diff | Download patch
OLDNEW
(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 "ui/android/context_provider_factory.h"
6
7 #include "cc/output/context_provider.h"
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);
no sievers 2016/08/02 20:44:34 DCHECK(!g_context_provider_factory || !context_pro
Khushal 2016/08/02 22:22:16 Done.
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698