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

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

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 ee154f1390f6485115de8b63cec56f8fde4d6d16..cdb11d4eda0daa208deb478eb013f3674e92b11d 100644
--- a/content/browser/android/browser_surface_texture_manager.cc
+++ b/content/browser/android/browser_surface_texture_manager.cc
@@ -95,10 +95,10 @@ void BrowserSurfaceTextureManager::UnregisterSurfaceTexture(
}
gfx::AcceleratedWidget BrowserSurfaceTextureManager::AcquireNativeWidget(
- int surface_texture_id,
- int client_id) {
+ int surface_texture_id) {
+ const int kBrowserClientId = 0;
piman 2014/11/04 01:07:26 Why 0, where does it come from? Can RegisterSurfac
piman 2014/11/04 01:22:46 Double-checked: this should be BrowserGpuChannelHo
reveman 2014/11/04 06:20:46 Thanks. Fixed in latest patch.
gfx::ScopedJavaSurface surface(
- content::GetSurfaceTextureSurface(surface_texture_id, client_id));
+ content::GetSurfaceTextureSurface(surface_texture_id, kBrowserClientId));
if (surface.j_surface().is_null())
return NULL;

Powered by Google App Engine
This is Rietveld 408576698