| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <set> | 5 #include <set> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
| 10 #include "cc/trees/property_tree.h" | 10 #include "cc/trees/property_tree.h" |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 node->data.to_target.Translate(translation.x(), translation.y()); | 375 node->data.to_target.Translate(translation.x(), translation.y()); |
| 376 node->data.from_target.matrix().postTranslate(-translation.x(), | 376 node->data.from_target.matrix().postTranslate(-translation.x(), |
| 377 -translation.y(), 0); | 377 -translation.y(), 0); |
| 378 node->data.to_screen.Translate(translation.x(), translation.y()); | 378 node->data.to_screen.Translate(translation.x(), translation.y()); |
| 379 node->data.from_screen.matrix().postTranslate(-translation.x(), | 379 node->data.from_screen.matrix().postTranslate(-translation.x(), |
| 380 -translation.y(), 0); | 380 -translation.y(), 0); |
| 381 | 381 |
| 382 node->data.scroll_snap = translation; | 382 node->data.scroll_snap = translation; |
| 383 } | 383 } |
| 384 | 384 |
| 385 PropertyTrees::PropertyTrees() : needs_rebuild(true) { | 385 PropertyTrees::PropertyTrees() : needs_rebuild(true), sequence_number(0) { |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace cc | 388 } // namespace cc |
| OLD | NEW |