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

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

Issue 1120873002: Re-land: content: Single process support for native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dm-browsertests-refactor
Patch Set: disable test for now 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
« no previous file with comments | « no previous file | content/browser/android/browser_surface_texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/browser_surface_texture_manager.h
diff --git a/content/browser/android/browser_surface_texture_manager.h b/content/browser/android/browser_surface_texture_manager.h
index 959d270548874b736c745db4a735cf4b5957967c..e276928d877f6a11f348e7ea923cea60f4426e86 100644
--- a/content/browser/android/browser_surface_texture_manager.h
+++ b/content/browser/android/browser_surface_texture_manager.h
@@ -7,15 +7,17 @@
#include "content/common/android/surface_texture_manager.h"
+#include "base/memory/singleton.h"
#include "content/common/android/surface_texture_peer.h"
+#include "content/common/content_export.h"
namespace content {
-class BrowserSurfaceTextureManager : public SurfaceTextureManager,
- public SurfaceTexturePeer {
+class CONTENT_EXPORT BrowserSurfaceTextureManager
+ : public SurfaceTextureManager,
+ public SurfaceTexturePeer {
public:
- BrowserSurfaceTextureManager();
- ~BrowserSurfaceTextureManager() override;
+ static BrowserSurfaceTextureManager* GetInstance();
// Overridden from SurfaceTextureManager:
void RegisterSurfaceTexture(int surface_texture_id,
@@ -33,6 +35,11 @@ class BrowserSurfaceTextureManager : public SurfaceTextureManager,
int player_id) override;
private:
+ friend struct DefaultSingletonTraits<BrowserSurfaceTextureManager>;
+
+ BrowserSurfaceTextureManager();
+ ~BrowserSurfaceTextureManager() override;
+
DISALLOW_COPY_AND_ASSIGN(BrowserSurfaceTextureManager);
};
« no previous file with comments | « no previous file | content/browser/android/browser_surface_texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698