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

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

Issue 1385123003: Delete scrollCompensationAdjustment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 9 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/blink/web_layer_impl.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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 gfx::Transform screen_space_transform() const; 246 gfx::Transform screen_space_transform() const;
247 247
248 void set_num_unclipped_descendants(size_t descendants) { 248 void set_num_unclipped_descendants(size_t descendants) {
249 num_unclipped_descendants_ = descendants; 249 num_unclipped_descendants_ = descendants;
250 } 250 }
251 size_t num_unclipped_descendants() const { 251 size_t num_unclipped_descendants() const {
252 return num_unclipped_descendants_; 252 return num_unclipped_descendants_;
253 } 253 }
254 254
255 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); 255 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset);
256 void SetScrollCompensationAdjustment(
257 const gfx::Vector2dF& scroll_compensation_adjustment);
258 gfx::Vector2dF ScrollCompensationAdjustment() const;
259 256
260 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; } 257 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; }
261 void SetScrollOffsetFromImplSide(const gfx::ScrollOffset& scroll_offset); 258 void SetScrollOffsetFromImplSide(const gfx::ScrollOffset& scroll_offset);
262 259
263 void SetScrollClipLayerId(int clip_layer_id); 260 void SetScrollClipLayerId(int clip_layer_id);
264 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; } 261 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; }
265 Layer* scroll_clip_layer() const; 262 Layer* scroll_clip_layer() const;
266 263
267 void SetUserScrollable(bool horizontal, bool vertical); 264 void SetUserScrollable(bool horizontal, bool vertical);
268 bool user_scrollable_horizontal() const { 265 bool user_scrollable_horizontal() const {
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 643
647 // Layer instances have a weak pointer to their LayerTreeHost. 644 // Layer instances have a weak pointer to their LayerTreeHost.
648 // This pointer value is nil when a Layer is not in a tree and is 645 // This pointer value is nil when a Layer is not in a tree and is
649 // updated via SetLayerTreeHost() if a layer moves between trees. 646 // updated via SetLayerTreeHost() if a layer moves between trees.
650 LayerTreeHost* layer_tree_host_; 647 LayerTreeHost* layer_tree_host_;
651 648
652 // Layer properties. 649 // Layer properties.
653 gfx::Size bounds_; 650 gfx::Size bounds_;
654 651
655 gfx::ScrollOffset scroll_offset_; 652 gfx::ScrollOffset scroll_offset_;
656 gfx::Vector2dF scroll_compensation_adjustment_;
657 // This variable indicates which ancestor layer (if any) whose size, 653 // This variable indicates which ancestor layer (if any) whose size,
658 // transformed relative to this layer, defines the maximum scroll offset for 654 // transformed relative to this layer, defines the maximum scroll offset for
659 // this layer. 655 // this layer.
660 int scroll_clip_layer_id_; 656 int scroll_clip_layer_id_;
661 int num_descendants_that_draw_content_; 657 int num_descendants_that_draw_content_;
662 int transform_tree_index_; 658 int transform_tree_index_;
663 int effect_tree_index_; 659 int effect_tree_index_;
664 int clip_tree_index_; 660 int clip_tree_index_;
665 int scroll_tree_index_; 661 int scroll_tree_index_;
666 int property_tree_sequence_number_; 662 int property_tree_sequence_number_;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 730
735 std::vector<FrameTimingRequest> frame_timing_requests_; 731 std::vector<FrameTimingRequest> frame_timing_requests_;
736 bool frame_timing_requests_dirty_; 732 bool frame_timing_requests_dirty_;
737 733
738 DISALLOW_COPY_AND_ASSIGN(Layer); 734 DISALLOW_COPY_AND_ASSIGN(Layer);
739 }; 735 };
740 736
741 } // namespace cc 737 } // namespace cc
742 738
743 #endif // CC_LAYERS_LAYER_H_ 739 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698