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

Unified Diff: gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc

Issue 2148983002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid crash in DrmDeviceManager::GetDrmDevice when passed invalid widget Created 4 years, 5 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 | « gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.h ('k') | media/gpu/vaapi_drm_picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc
diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc b/gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc
index d7d508cd141b15b67ec11576b2e5fe252aeec9b1..0bca3b26b7839ff904e706e39b31536ff8cecbf9 100644
--- a/gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc
+++ b/gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.cc
@@ -76,7 +76,8 @@ GpuMemoryBufferFactorySurfaceTexture::CreateImageForGpuMemoryBuffer(
const gfx::Size& size,
gfx::BufferFormat format,
unsigned internalformat,
- int client_id) {
+ int client_id,
+ SurfaceHandle surface_handle) {
base::AutoLock lock(surface_textures_lock_);
DCHECK_EQ(handle.type, gfx::SURFACE_TEXTURE_BUFFER);
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory_surface_texture.h ('k') | media/gpu/vaapi_drm_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698