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

Unified Diff: content/renderer/render_thread_impl.h

Issue 77023002: gpu: Add IOSurface backed GpuMemoryBuffer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback 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
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 1f16ee7d9302e5d6627375986e45bfa8f2f516f3..7a3f20cd6f3f8954a71e3c5a13dc4fb574a96fb4 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -13,6 +13,7 @@
#include "base/observer_list.h"
#include "base/process/process_handle.h"
#include "base/strings/string16.h"
+#include "base/threading/thread_checker.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
#include "content/child/child_thread.h"
@@ -504,6 +505,11 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
base::ProcessId renderer_process_id_;
+ // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
+ // multiple threads. Current allocation mechanism for IOSurface
+ // backed GpuMemoryBuffers prevent this. crbug.com/325045
+ base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
+
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};

Powered by Google App Engine
This is Rietveld 408576698