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

Unified Diff: android_webview/browser/shared_renderer_state.cc

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 | « android_webview/browser/shared_renderer_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/shared_renderer_state.cc
diff --git a/android_webview/browser/shared_renderer_state.cc b/android_webview/browser/shared_renderer_state.cc
index fb17afbbcdc2fa89ce23feb2a130397963d5869e..1e824382eabebb9d079a6f43cd7596c8a61e0956 100644
--- a/android_webview/browser/shared_renderer_state.cc
+++ b/android_webview/browser/shared_renderer_state.cc
@@ -47,20 +47,24 @@ void SharedRendererState::ClientRequestDrawGLOnUIThread() {
void SharedRendererState::SetCompositorOnUiThread(
content::SynchronousCompositor* compositor) {
+ base::AutoLock lock(lock_);
DCHECK(ui_loop_->BelongsToCurrentThread());
compositor_ = compositor;
}
content::SynchronousCompositor* SharedRendererState::GetCompositor() {
+ base::AutoLock lock(lock_);
DCHECK(compositor_);
return compositor_;
}
void SharedRendererState::SetDrawGLInput(const DrawGLInput& input) {
+ base::AutoLock lock(lock_);
draw_gl_input_ = input;
}
DrawGLInput SharedRendererState::GetDrawGLInput() const {
+ base::AutoLock lock(lock_);
return draw_gl_input_;
}
« no previous file with comments | « android_webview/browser/shared_renderer_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698