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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 1215183004: Arrange compositor scrolling into scroll customization format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile. 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Useful for debug assertions, probably shouldn't be used for anything else. 270 // Useful for debug assertions, probably shouldn't be used for anything else.
271 Proxy* proxy() const; 271 Proxy* proxy() const;
272 272
273 void SetRootLayerScrollOffsetDelegate( 273 void SetRootLayerScrollOffsetDelegate(
274 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); 274 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate);
275 void UpdateRootScrollOffsetDelegate(); 275 void UpdateRootScrollOffsetDelegate();
276 // Distribute the rool scroll between outer and inner viewport scroll layer. 276 // Distribute the rool scroll between outer and inner viewport scroll layer.
277 // The outer viewport scroll layer scrolls first. 277 // The outer viewport scroll layer scrolls first.
278 void DistributeRootScrollOffset(); 278 void DistributeRootScrollOffset();
279 279
280 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) {
281 layer_tree_host_impl_->ApplyScroll(layer, scroll_state);
282 }
283
280 // Call this function when you expect there to be a swap buffer. 284 // Call this function when you expect there to be a swap buffer.
281 // See swap_promise.h for how to use SwapPromise. 285 // See swap_promise.h for how to use SwapPromise.
282 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); 286 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise);
283 287
284 // Take the |new_swap_promise| and append it to |swap_promise_list_|. 288 // Take the |new_swap_promise| and append it to |swap_promise_list_|.
285 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); 289 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise);
286 void FinishSwapPromises(CompositorFrameMetadata* metadata); 290 void FinishSwapPromises(CompositorFrameMetadata* metadata);
287 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); 291 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
288 292
289 void DidModifyTilePriorities(); 293 void DidModifyTilePriorities();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 458
455 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 459 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
456 460
457 private: 461 private:
458 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 462 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
459 }; 463 };
460 464
461 } // namespace cc 465 } // namespace cc
462 466
463 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 467 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698