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

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

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // them from the other values. 420 // them from the other values.
421 421
422 void SetBounds(const gfx::Size& bounds); 422 void SetBounds(const gfx::Size& bounds);
423 gfx::Size bounds() const; 423 gfx::Size bounds() const;
424 // Like bounds() but doesn't snap to int. Lossy on giant pages (e.g. millions 424 // Like bounds() but doesn't snap to int. Lossy on giant pages (e.g. millions
425 // of pixels) due to use of single precision float. 425 // of pixels) due to use of single precision float.
426 gfx::SizeF BoundsForScrolling() const; 426 gfx::SizeF BoundsForScrolling() const;
427 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta); 427 void SetBoundsDelta(const gfx::Vector2dF& bounds_delta);
428 gfx::Vector2dF bounds_delta() const { return bounds_delta_; } 428 gfx::Vector2dF bounds_delta() const { return bounds_delta_; }
429 429
430 bool IsExternalScrollActive() const;
431
432 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset); 430 void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset);
433 void SetCurrentScrollOffsetFromDelegate( 431 void SetCurrentScrollOffsetFromDelegate(
434 const gfx::ScrollOffset& scroll_offset); 432 const gfx::ScrollOffset& scroll_offset);
435 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset); 433 void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset);
436 // This method is similar to PushScrollOffsetFromMainThread but will cause the 434 // This method is similar to PushScrollOffsetFromMainThread but will cause the
437 // scroll offset given to clobber any scroll changes on the active tree in the 435 // scroll offset given to clobber any scroll changes on the active tree in the
438 // time until this value is pushed to the active tree. 436 // time until this value is pushed to the active tree.
439 void PushScrollOffsetFromMainThreadAndClobberActiveValue( 437 void PushScrollOffsetFromMainThreadAndClobberActiveValue(
440 const gfx::ScrollOffset& scroll_offset); 438 const gfx::ScrollOffset& scroll_offset);
441 gfx::ScrollOffset PullDeltaForMainThread(); 439 gfx::ScrollOffset PullDeltaForMainThread();
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 bool visited_; 866 bool visited_;
869 bool layer_or_descendant_is_drawn_; 867 bool layer_or_descendant_is_drawn_;
870 bool sorted_for_recursion_; 868 bool sorted_for_recursion_;
871 869
872 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 870 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
873 }; 871 };
874 872
875 } // namespace cc 873 } // namespace cc
876 874
877 #endif // CC_LAYERS_LAYER_IMPL_H_ 875 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698