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

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: one more ozone build fix 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..44669839f2b4130d6af97af4a9661dfc0e5127ef 100644
--- a/content/browser/android/browser_surface_texture_manager.cc
+++ b/content/browser/android/browser_surface_texture_manager.cc
@@ -9,6 +9,7 @@
#include "base/android/jni_android.h"
#include "content/browser/android/child_process_launcher_android.h"
#include "content/browser/frame_host/render_frame_host_impl.h"
+#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
#include "content/browser/media/android/browser_media_player_manager.h"
#include "content/browser/media/media_web_contents_observer.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
@@ -94,11 +95,13 @@ void BrowserSurfaceTextureManager::UnregisterSurfaceTexture(
content::DestroySurfaceTextureSurface(surface_texture_id, client_id);
}
-gfx::AcceleratedWidget BrowserSurfaceTextureManager::AcquireNativeWidget(
- int surface_texture_id,
- int client_id) {
+gfx::AcceleratedWidget
+BrowserSurfaceTextureManager::AcquireNativeWidgetForSurfaceTexture(
+ int surface_texture_id) {
gfx::ScopedJavaSurface surface(
- content::GetSurfaceTextureSurface(surface_texture_id, client_id));
+ content::GetSurfaceTextureSurface(
+ surface_texture_id,
+ BrowserGpuChannelHostFactory::instance()->GetGpuChannelId()));
if (surface.j_surface().is_null())
return NULL;
« no previous file with comments | « content/browser/android/browser_surface_texture_manager.h ('k') | content/browser/gpu/browser_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698