| Index: content/common/android/surface_texture_peer.cc
|
| diff --git a/content/common/android/surface_texture_peer.cc b/content/common/android/surface_texture_peer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..78a18ee83a53ee7d8a73aafe0ae9e83f8df76ef1
|
| --- /dev/null
|
| +++ b/content/common/android/surface_texture_peer.cc
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2011 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/android/surface_texture_peer.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace content {
|
| +
|
| +namespace {
|
| +SurfaceTexturePeer* g_instance_ = NULL;
|
| +} // namespace
|
| +
|
| +SurfaceTexturePeer::SurfaceTexturePeer() {
|
| +}
|
| +
|
| +SurfaceTexturePeer::~SurfaceTexturePeer() {
|
| +}
|
| +
|
| +// static
|
| +SurfaceTexturePeer* SurfaceTexturePeer::GetInstance() {
|
| + DCHECK(g_instance_);
|
| + return g_instance_;
|
| +}
|
| +
|
| +// static
|
| +void SurfaceTexturePeer::InitInstance(SurfaceTexturePeer* instance) {
|
| + DCHECK(!g_instance_);
|
| + g_instance_ = instance;
|
| +}
|
| +
|
| +} // namespace content
|
|
|