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

Unified Diff: services/ui/ws/scheduled_animation_group.cc

Issue 2179273002: Mojo C++ bindings: support mapping T and T? differently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « services/ui/public/cpp/tests/test_window_tree.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/scheduled_animation_group.cc
diff --git a/services/ui/ws/scheduled_animation_group.cc b/services/ui/ws/scheduled_animation_group.cc
index 8ddfa5f52d790055c0bacc3a6466e9e5f3805c3b..1d37ae2dac3831f646a7ed960e83b0f0f44e3144 100644
--- a/services/ui/ws/scheduled_animation_group.cc
+++ b/services/ui/ws/scheduled_animation_group.cc
@@ -89,7 +89,8 @@ gfx::Tween::Type AnimationTypeToTweenType(mojom::AnimationTweenType type) {
void ConvertToScheduledValue(const mojom::AnimationValue& transport_value,
ScheduledAnimationValue* value) {
value->float_value = transport_value.float_value;
- value->transform = transport_value.transform;
+ value->transform =
+ transport_value.transform ? *transport_value.transform : gfx::Transform();
}
void ConvertToScheduledElement(const mojom::AnimationElement& transport_element,
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698