Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: ui/gl/android/surface_texture_tracker.cc

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ::InitInstance comments. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/gl/android/surface_texture_tracker.h"
6
7 namespace gfx {
8 namespace {
9 SurfaceTextureTracker* g_instance = NULL;
10 } // namespace
11
12 // static
13 SurfaceTextureTracker* SurfaceTextureTracker::GetInstance() {
14 DCHECK(g_instance);
15 return g_instance;
16 }
17
18 // static
19 void SurfaceTextureTracker::InitInstance(SurfaceTextureTracker* tracker) {
20 DCHECK(!g_instance);
21 g_instance = tracker;
22 }
23
24 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698