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

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

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 | « chrome/browser/android/vr_shell/ui_scene.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/ui_scene.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene.cc b/chrome/browser/android/vr_shell/ui_scene.cc
index be4d83b15f0660cc95ea659bc5a7ab779beae070..2d4adb13181229d86665b66925900a5b649193b6 100644
--- a/chrome/browser/android/vr_shell/ui_scene.cc
+++ b/chrome/browser/android/vr_shell/ui_scene.cc
@@ -278,7 +278,7 @@ void UiScene::RemoveAnimation(int element_id, int animation_id) {
}
}
-void UiScene::HandleCommands(const base::ListValue* commands,
+void UiScene::HandleCommands(std::unique_ptr<base::ListValue> commands,
int64_t time_in_micro) {
for (auto& item : *commands) {
base::DictionaryValue* dict;
@@ -351,11 +351,6 @@ UiScene::UiScene() = default;
UiScene::~UiScene() = default;
-int64_t UiScene::TimeInMicroseconds() {
- return std::chrono::duration_cast<std::chrono::microseconds>(
- std::chrono::steady_clock::now().time_since_epoch()).count();
-}
-
void UiScene::ApplyRecursiveTransforms(const ContentRectangle& element,
ReversibleTransform* transform) {
transform->Scale(element.scale.x, element.scale.y, element.scale.z);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.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