| Index: ui/gl/android/surface_factory_android.cc
|
| diff --git a/ui/gl/android/surface_factory_android.cc b/ui/gl/android/surface_factory_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..790c2d311fd315656ed0dd85aaf56497ea17ce42
|
| --- /dev/null
|
| +++ b/ui/gl/android/surface_factory_android.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/gl/android/surface_factory_android.h"
|
| +
|
| +namespace gfx {
|
| +
|
| +namespace {
|
| +SurfaceFactoryAndroid* g_factory_instance;
|
| +}
|
| +
|
| +SurfaceFactoryAndroid::~SurfaceFactoryAndroid() {}
|
| +
|
| +// static
|
| +SurfaceFactoryAndroid* SurfaceFactoryAndroid::GetInstance() {
|
| + return g_factory_instance;
|
| +}
|
| +
|
| +// static
|
| +void SurfaceFactoryAndroid::SetInstance(
|
| + SurfaceFactoryAndroid* instance) {
|
| + g_factory_instance = instance;
|
| +}
|
| +
|
| +} // namespace gfx
|
|
|