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

Unified Diff: chrome/browser/android/vr_shell/vr_compositor.cc

Issue 2571713006: Fix some thread safety violations in device::GvrDelegate implementation. (Closed)
Patch Set: Created 4 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 | « chrome/browser/android/vr_shell/vr_compositor.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_compositor.cc
diff --git a/chrome/browser/android/vr_shell/vr_compositor.cc b/chrome/browser/android/vr_shell/vr_compositor.cc
index 9d5d05e29802743fde8a8dc4b41f32b615bbaa6f..882236f53d8c54bc360732be0577f7ce87a000b4 100644
--- a/chrome/browser/android/vr_shell/vr_compositor.cc
+++ b/chrome/browser/android/vr_shell/vr_compositor.cc
@@ -54,8 +54,9 @@ void VrCompositor::SurfaceDestroyed() {
compositor_->SetSurface(nullptr);
}
-void VrCompositor::SetWindowBounds(int width, int height) {
- compositor_->SetWindowBounds(gfx::Size(width, height));
+void VrCompositor::SetWindowBounds(gfx::Size size) {
+ bounds_ = size;
+ compositor_->SetWindowBounds(bounds_);
}
void VrCompositor::SurfaceChanged(jobject surface) {
« no previous file with comments | « chrome/browser/android/vr_shell/vr_compositor.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698