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

Unified Diff: android_webview/browser/shared_renderer_state.h

Issue 260213002: Add lock back to SharedRendererState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove bvr change Created 6 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
« no previous file with comments | « no previous file | android_webview/browser/shared_renderer_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/shared_renderer_state.h
diff --git a/android_webview/browser/shared_renderer_state.h b/android_webview/browser/shared_renderer_state.h
index a7ec60ca55163dce2059113c70a1d1b37e5297e6..ec21663f203a160c4feaf7881dc488aa78ba1d36 100644
--- a/android_webview/browser/shared_renderer_state.h
+++ b/android_webview/browser/shared_renderer_state.h
@@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_H_
#include "base/message_loop/message_loop_proxy.h"
+#include "base/synchronization/lock.h"
#include "content/public/browser/android/synchronous_compositor.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
@@ -64,6 +65,7 @@ class SharedRendererState {
base::WeakPtr<SharedRendererState> ui_thread_weak_ptr_;
// Accessed by both UI and RT thread.
+ mutable base::Lock lock_;
content::SynchronousCompositor* compositor_;
DrawGLInput draw_gl_input_;
};
« no previous file with comments | « no previous file | android_webview/browser/shared_renderer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698