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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 100053005: Allow AllocateGpuMemoryBuffer to be called from multiple threads. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « content/renderer/render_thread_impl.h ('k') | ui/gl/io_surface_support_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 65ecb40bf5e6b6c9979a3ef3da59937896ab2b27..17a3cd9f92869575c2291445a1a3147733690a91 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -406,10 +406,6 @@ void RenderThreadImpl::Init() {
renderer_process_id_ = base::kNullProcessId;
- // AllocateGpuMemoryBuffer must be used exclusively on one thread but
- // it doesn't have to be the same thread RenderThreadImpl is created on.
- allocate_gpu_memory_buffer_thread_checker_.DetachFromThread();
-
TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, "");
}
@@ -1074,8 +1070,6 @@ scoped_ptr<gfx::GpuMemoryBuffer> RenderThreadImpl::AllocateGpuMemoryBuffer(
size_t width,
size_t height,
unsigned internalformat) {
- DCHECK(allocate_gpu_memory_buffer_thread_checker_.CalledOnValidThread());
-
if (!GpuMemoryBufferImpl::IsFormatValid(internalformat))
return scoped_ptr<gfx::GpuMemoryBuffer>();
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | ui/gl/io_surface_support_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698