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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/android/surface_texture_tracker.h ('k') | ui/gl/gl.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/android/surface_texture_tracker.cc
diff --git a/ui/gl/android/surface_texture_tracker.cc b/ui/gl/android/surface_texture_tracker.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d0ff16add929390c1b668aa4593855e3caf8d305
--- /dev/null
+++ b/ui/gl/android/surface_texture_tracker.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 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 "ui/gl/android/surface_texture_tracker.h"
+
+#include "base/logging.h"
+
+namespace gfx {
+namespace {
+SurfaceTextureTracker* g_instance = NULL;
+} // namespace
+
+// static
+SurfaceTextureTracker* SurfaceTextureTracker::GetInstance() {
+ DCHECK(g_instance);
+ return g_instance;
+}
+
+// static
+void SurfaceTextureTracker::InitInstance(SurfaceTextureTracker* tracker) {
+ DCHECK(!g_instance);
+ g_instance = tracker;
+}
+
+} // namespace gfx
« no previous file with comments | « ui/gl/android/surface_texture_tracker.h ('k') | ui/gl/gl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698