| Index: content/common/gpu/gpu_surface_lookup.cc
|
| diff --git a/content/common/gpu/gpu_surface_lookup.cc b/content/common/gpu/gpu_surface_lookup.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..664d6b5c3f2661dab65b359980d1fc81a03cd7c3
|
| --- /dev/null
|
| +++ b/content/common/gpu/gpu_surface_lookup.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2012 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 "content/common/gpu/gpu_surface_lookup.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace {
|
| +GpuSurfaceLookup* g_instance = NULL;
|
| +} // anonymous namespace
|
| +
|
| +// static
|
| +GpuSurfaceLookup* GpuSurfaceLookup::GetInstance() {
|
| + DCHECK(g_instance);
|
| + return g_instance;
|
| +}
|
| +
|
| +// static
|
| +void GpuSurfaceLookup::InitInstance(GpuSurfaceLookup* lookup) {
|
| + DCHECK(!g_instance || !lookup);
|
| + g_instance = lookup;
|
| +}
|
|
|