summaryrefslogtreecommitdiffstats
path: root/content/common/android/surface_texture_peer.cc
blob: a6fade45e69b9af79f4d32e6c461bc9bae18a95b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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/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