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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc

Issue 1050923003: zero-copy: Clarify to allocate/destroy GpuMemoryBuffer on any thread and use it on the main thread o (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just add thread check Created 5 years, 8 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/common/gpu/gpu_memory_buffer_factory_surface_texture.cc
diff --git a/content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc b/content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc
index 1b2c881f6aeb2e5420e57cd9e5bf68eb4672e543..71fa0cdc86061b1ae86a00d82164f8c6ce96d663 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc
+++ b/content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc
@@ -105,7 +105,7 @@ GpuMemoryBufferFactorySurfaceTexture::CreateImageForGpuMemoryBuffer(
unsigned internalformat,
int client_id) {
base::AutoLock lock(surface_textures_lock_);
-
+ DCHECK(thread_checker_.CalledOnValidThread());
reveman 2015/04/07 13:07:05 ditto
dshwang 2015/04/07 14:04:26 ditto
DCHECK_EQ(handle.type, gfx::SURFACE_TEXTURE_BUFFER);
SurfaceTextureMapKey key(handle.id, client_id);

Powered by Google App Engine
This is Rietveld 408576698