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

Side by Side Diff: cc/layers/layer.h

Issue 2225973003: cc: Remove usage of ComputeVisibleRects on main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and fix perf regressions Created 4 years, 4 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/debug/invalidation_benchmark.cc ('k') | cc/layers/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 #ifndef CC_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 void SetTransformTreeIndex(int index); 424 void SetTransformTreeIndex(int index);
425 int transform_tree_index() const; 425 int transform_tree_index() const;
426 426
427 void SetClipTreeIndex(int index); 427 void SetClipTreeIndex(int index);
428 int clip_tree_index() const; 428 int clip_tree_index() const;
429 429
430 void SetEffectTreeIndex(int index); 430 void SetEffectTreeIndex(int index);
431 int effect_tree_index() const; 431 int effect_tree_index() const;
432 432
433 // TODO(sunxd): Remove this when we do not compute target space transforms on
434 // main thread in tests.
435 int render_target_effect_tree_index() const;
436
437 void SetScrollTreeIndex(int index); 433 void SetScrollTreeIndex(int index);
438 int scroll_tree_index() const; 434 int scroll_tree_index() const;
439 435
440 void set_offset_to_transform_parent(gfx::Vector2dF offset) { 436 void set_offset_to_transform_parent(gfx::Vector2dF offset) {
441 if (offset_to_transform_parent_ == offset) 437 if (offset_to_transform_parent_ == offset)
442 return; 438 return;
443 offset_to_transform_parent_ = offset; 439 offset_to_transform_parent_ = offset;
444 SetNeedsPushProperties(); 440 SetNeedsPushProperties();
445 } 441 }
446 gfx::Vector2dF offset_to_transform_parent() const { 442 gfx::Vector2dF offset_to_transform_parent() const {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 // These all act like draw properties, so don't need push properties. 725 // These all act like draw properties, so don't need push properties.
730 gfx::Rect visible_layer_rect_; 726 gfx::Rect visible_layer_rect_;
731 size_t num_unclipped_descendants_; 727 size_t num_unclipped_descendants_;
732 728
733 DISALLOW_COPY_AND_ASSIGN(Layer); 729 DISALLOW_COPY_AND_ASSIGN(Layer);
734 }; 730 };
735 731
736 } // namespace cc 732 } // namespace cc
737 733
738 #endif // CC_LAYERS_LAYER_H_ 734 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/debug/invalidation_benchmark.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698