This source file includes following definitions.
- GetInstance
- InitInstance
#include "content/common/android/surface_texture_peer.h"
#include "base/logging.h"
namespace content {
namespace {
SurfaceTexturePeer* g_instance_ = NULL;
}
SurfaceTexturePeer::SurfaceTexturePeer() {
}
SurfaceTexturePeer::~SurfaceTexturePeer() {
}
SurfaceTexturePeer* SurfaceTexturePeer::GetInstance() {
DCHECK(g_instance_);
return g_instance_;
}
void SurfaceTexturePeer::InitInstance(SurfaceTexturePeer* instance) {
DCHECK(!g_instance_);
g_instance_ = instance;
}
}