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

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

Issue 642113004: cc: Damage layer on delegated scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } 369 gfx::Vector2dF bounds_delta() const { return bounds_delta_; }
370 370
371 void SetContentBounds(const gfx::Size& content_bounds); 371 void SetContentBounds(const gfx::Size& content_bounds);
372 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } 372 gfx::Size content_bounds() const { return draw_properties_.content_bounds; }
373 373
374 float contents_scale_x() const { return draw_properties_.contents_scale_x; } 374 float contents_scale_x() const { return draw_properties_.contents_scale_x; }
375 float contents_scale_y() const { return draw_properties_.contents_scale_y; } 375 float contents_scale_y() const { return draw_properties_.contents_scale_y; }
376 void SetContentsScale(float contents_scale_x, float contents_scale_y); 376 void SetContentsScale(float contents_scale_x, float contents_scale_y);
377 377
378 void SetScrollOffsetDelegate(ScrollOffsetDelegate* scroll_offset_delegate); 378 void SetScrollOffsetDelegate(ScrollOffsetDelegate* scroll_offset_delegate);
379 void OnDelegatedScrollOffsetChanged();
379 bool IsExternalFlingActive() const; 380 bool IsExternalFlingActive() const;
380 381
381 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset); 382 void SetScrollOffset(const gfx::ScrollOffset& scroll_offset);
382 void SetScrollOffsetAndDelta(const gfx::ScrollOffset& scroll_offset, 383 void SetScrollOffsetAndDelta(const gfx::ScrollOffset& scroll_offset,
383 const gfx::Vector2dF& scroll_delta); 384 const gfx::Vector2dF& scroll_delta);
384 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; } 385 gfx::ScrollOffset scroll_offset() const { return scroll_offset_; }
385 386
386 gfx::ScrollOffset MaxScrollOffset() const; 387 gfx::ScrollOffset MaxScrollOffset() const;
387 gfx::Vector2dF ClampScrollToMaxScrollOffset(); 388 gfx::Vector2dF ClampScrollToMaxScrollOffset();
388 void SetScrollbarPosition(ScrollbarLayerImplBase* scrollbar_layer, 389 void SetScrollbarPosition(ScrollbarLayerImplBase* scrollbar_layer,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 DrawProperties<LayerImpl> draw_properties_; 708 DrawProperties<LayerImpl> draw_properties_;
708 709
709 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 710 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
710 711
711 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 712 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
712 }; 713 };
713 714
714 } // namespace cc 715 } // namespace cc
715 716
716 #endif // CC_LAYERS_LAYER_IMPL_H_ 717 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698