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

Unified Diff: chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h

Issue 3463005: Merge 59890 - Map: Guard concurrent accesses to a std::map by a lock in drawi... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 years, 3 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 | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h
===================================================================
--- chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h (revision 59895)
+++ chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h (working copy)
@@ -11,6 +11,7 @@
#include "app/surface/transport_dib.h"
#include "base/basictypes.h"
+#include "base/lock.h"
#include "gfx/native_widget_types.h"
namespace webkit_glue {
@@ -106,6 +107,11 @@
// created, this is set to |false| while the compositor is not needed.
bool gpu_rendering_active_;
+ // Both |plugin_window_to_container_map_| and the
+ // AcceleratedSurfaceContainerMac in it are not threadsafe, but accessed from
+ // multiple threads. All these accesses are guarded by this lock.
+ mutable Lock lock_;
+
DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerManagerMac);
};
« no previous file with comments | « no previous file | chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698