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

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

Issue 877173002: Fixed position layer counter-scroll with main thread scroll offset fractional part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready for review Created 5 years, 10 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 return draw_checkerboard_for_missing_tiles_; 310 return draw_checkerboard_for_missing_tiles_;
311 } 311 }
312 312
313 void SetForceRenderSurface(bool force_render_surface); 313 void SetForceRenderSurface(bool force_render_surface);
314 bool force_render_surface() const { return force_render_surface_; } 314 bool force_render_surface() const { return force_render_surface_; }
315 315
316 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); } 316 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); }
317 gfx::ScrollOffset TotalScrollOffset() const { 317 gfx::ScrollOffset TotalScrollOffset() const {
318 return ScrollOffsetWithDelta(scroll_offset(), ScrollDelta()); 318 return ScrollOffsetWithDelta(scroll_offset(), ScrollDelta());
319 } 319 }
320 gfx::Vector2dF MainScrollOffsetFracitionalPart() const {
321 return scroll_offset_fractional_part_;
322 }
320 323
321 void SetDoubleSided(bool double_sided); 324 void SetDoubleSided(bool double_sided);
322 bool double_sided() const { return double_sided_; } 325 bool double_sided() const { return double_sided_; }
323 326
324 void SetShouldFlattenTransform(bool flatten); 327 void SetShouldFlattenTransform(bool flatten);
325 bool should_flatten_transform() const { return should_flatten_transform_; } 328 bool should_flatten_transform() const { return should_flatten_transform_; }
326 329
327 bool Is3dSorted() const { return sorting_context_id_ != 0; } 330 bool Is3dSorted() const { return sorting_context_id_ != 0; }
328 331
329 void set_use_parent_backface_visibility(bool use) { 332 void set_use_parent_backface_visibility(bool use) {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 // This pointer value is nil when a Layer is not in a tree and is 632 // This pointer value is nil when a Layer is not in a tree and is
630 // updated via SetLayerTreeHost() if a layer moves between trees. 633 // updated via SetLayerTreeHost() if a layer moves between trees.
631 LayerTreeHost* layer_tree_host_; 634 LayerTreeHost* layer_tree_host_;
632 635
633 scoped_refptr<LayerAnimationController> layer_animation_controller_; 636 scoped_refptr<LayerAnimationController> layer_animation_controller_;
634 637
635 // Layer properties. 638 // Layer properties.
636 gfx::Size bounds_; 639 gfx::Size bounds_;
637 640
638 gfx::ScrollOffset scroll_offset_; 641 gfx::ScrollOffset scroll_offset_;
642 gfx::Vector2dF scroll_offset_fractional_part_;
639 // This variable indicates which ancestor layer (if any) whose size, 643 // This variable indicates which ancestor layer (if any) whose size,
640 // transformed relative to this layer, defines the maximum scroll offset for 644 // transformed relative to this layer, defines the maximum scroll offset for
641 // this layer. 645 // this layer.
642 int scroll_clip_layer_id_; 646 int scroll_clip_layer_id_;
643 int num_descendants_that_draw_content_; 647 int num_descendants_that_draw_content_;
644 int transform_tree_index_; 648 int transform_tree_index_;
645 int opacity_tree_index_; 649 int opacity_tree_index_;
646 int clip_tree_index_; 650 int clip_tree_index_;
647 gfx::Vector2dF offset_to_transform_parent_; 651 gfx::Vector2dF offset_to_transform_parent_;
648 bool should_scroll_on_main_thread_ : 1; 652 bool should_scroll_on_main_thread_ : 1;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 709
706 std::vector<FrameTimingRequest> frame_timing_requests_; 710 std::vector<FrameTimingRequest> frame_timing_requests_;
707 bool frame_timing_requests_dirty_; 711 bool frame_timing_requests_dirty_;
708 712
709 DISALLOW_COPY_AND_ASSIGN(Layer); 713 DISALLOW_COPY_AND_ASSIGN(Layer);
710 }; 714 };
711 715
712 } // namespace cc 716 } // namespace cc
713 717
714 #endif // CC_LAYERS_LAYER_H_ 718 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698