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

Unified Diff: content/browser/android/browser_surface_texture_manager.cc

Issue 1171293005: Revert of content: Single process support for native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dm-browsertests-refactor
Patch Set: Created 5 years, 6 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
Index: content/browser/android/browser_surface_texture_manager.cc
diff --git a/content/browser/android/browser_surface_texture_manager.cc b/content/browser/android/browser_surface_texture_manager.cc
index 93c10f13ff2e70ad97fca1eb9ae4b41f8babbe08..832036b1864ef4af1bbc42aaef48ae9ab8536a9b 100644
--- a/content/browser/android/browser_surface_texture_manager.cc
+++ b/content/browser/android/browser_surface_texture_manager.cc
@@ -73,10 +73,12 @@
} // namespace
-// static
-BrowserSurfaceTextureManager* BrowserSurfaceTextureManager::GetInstance() {
- return Singleton<BrowserSurfaceTextureManager,
- LeakySingletonTraits<BrowserSurfaceTextureManager>>::get();
+BrowserSurfaceTextureManager::BrowserSurfaceTextureManager() {
+ SurfaceTexturePeer::InitInstance(this);
+}
+
+BrowserSurfaceTextureManager::~BrowserSurfaceTextureManager() {
+ SurfaceTexturePeer::InitInstance(NULL);
}
void BrowserSurfaceTextureManager::RegisterSurfaceTexture(
@@ -131,12 +133,4 @@
player_id));
}
-BrowserSurfaceTextureManager::BrowserSurfaceTextureManager() {
- SurfaceTexturePeer::InitInstance(this);
-}
-
-BrowserSurfaceTextureManager::~BrowserSurfaceTextureManager() {
- SurfaceTexturePeer::InitInstance(nullptr);
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698