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

Side by Side Diff: cc/trees/property_tree.cc

Issue 1139573004: Reset property tree indices when layer is removed from layer tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use sequence numbers to invalidate property tree indices. Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « cc/trees/property_tree.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/trees/property_tree.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698