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

Unified Diff: chrome/browser/android/vr_shell/ui_scene.h

Issue 2574313002: Clean up threading around VR Scene updates. (Closed)
Patch Set: rebase 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 | « no previous file | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_scene.h
diff --git a/chrome/browser/android/vr_shell/ui_scene.h b/chrome/browser/android/vr_shell/ui_scene.h
index 5271f7b37959e4b39a5808160a0fb66c8af0ea25..d974fdf33a015b51121fe79197a10ab714292ce8 100644
--- a/chrome/browser/android/vr_shell/ui_scene.h
+++ b/chrome/browser/android/vr_shell/ui_scene.h
@@ -60,7 +60,8 @@ class UiScene {
void UpdateTransforms(float screen_tilt, int64_t time_in_micro);
// Handle a batch of commands passed from the UI HTML.
- void HandleCommands(const base::ListValue* commands, int64_t time_in_micro);
+ void HandleCommands(std::unique_ptr<base::ListValue> commands,
+ int64_t time_in_micro);
const std::vector<std::unique_ptr<ContentRectangle>>& GetUiElements() const;
@@ -68,9 +69,6 @@ class UiScene {
ContentRectangle* GetContentQuad();
- // Return a monotonic time in microseconds for coordinating animations.
- static int64_t TimeInMicroseconds();
-
private:
void ApplyRecursiveTransforms(const ContentRectangle& element,
ReversibleTransform* transform);
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698