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

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

Issue 2268173002: Add StreamTexture resgistration for the Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 63178244a52aedf9ce08eb8179876f97eb4016df..64b24927b91a4249e58434a7c66ba10d8b47e852 100644
--- a/content/browser/android/browser_surface_texture_manager.cc
+++ b/content/browser/android/browser_surface_texture_manager.cc
@@ -38,6 +38,27 @@ void BrowserSurfaceTextureManager::UnregisterSurfaceTexture(
content::DestroySurfaceTextureSurface(surface_texture_id, client_id);
}
+void BrowserSurfaceTextureManager::RegisterBrowserSurfaceTexture(
+ int surface_texture_id,
+ gl::SurfaceTexture* stream_texture_surface) {
+ // The browser shouldn't register SurfaceTextures for its own use.
+ // The GPU process can register SurfaceTextures for the browser's use instead.
+ // See ChildProcessServices::RegisterBrowserSurfaceTexture().
+ NOTREACHED();
+};
+
+void BrowserSurfaceTextureManager::UnregisterBrowserSurfaceTexture(
+ int stream_texture_id) {
+ // The GPU process is responsible for unregistering any SurfaceTextures it
+ // registered.
+ NOTREACHED();
+};
+
+gl::ScopedJavaSurface BrowserSurfaceTextureManager::GetBrowserSurfaceTexture(
+ int stream_texture_id) {
+ return content::GetBrowserSurfaceTextureSurface(stream_texture_id);
+};
+
gfx::AcceleratedWidget
BrowserSurfaceTextureManager::AcquireNativeWidgetForSurfaceTexture(
int surface_texture_id) {
« no previous file with comments | « content/browser/android/browser_surface_texture_manager.h ('k') | content/browser/android/child_process_launcher_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698