OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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/gl/android/gl_factory_android.h" |
| 6 |
| 7 namespace gfx { |
| 8 |
| 9 namespace { |
| 10 GLFactoryAndroid* g_factory_instance; |
| 11 } |
| 12 |
| 13 GLFactoryAndroid::~GLFactoryAndroid() {} |
| 14 |
| 15 // static |
| 16 GLFactoryAndroid* GLFactoryAndroid::GetCurrent() { |
| 17 return g_factory_instance; |
| 18 } |
| 19 |
| 20 // static |
| 21 void GLFactoryAndroid::SetCurrent( |
| 22 GLFactoryAndroid* instance) { |
| 23 g_factory_instance = instance; |
| 24 } |
| 25 |
| 26 } // namespace gfx |
OLD | NEW |