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

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

Issue 642113004: cc: Damage layer on delegated scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DidScroll 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.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 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // and the active tree's size is now out of date. 238 // and the active tree's size is now out of date.
239 bool ViewportSizeInvalid() const; 239 bool ViewportSizeInvalid() const;
240 void SetViewportSizeInvalid(); 240 void SetViewportSizeInvalid();
241 void ResetViewportSizeInvalid(); 241 void ResetViewportSizeInvalid();
242 242
243 // Useful for debug assertions, probably shouldn't be used for anything else. 243 // Useful for debug assertions, probably shouldn't be used for anything else.
244 Proxy* proxy() const; 244 Proxy* proxy() const;
245 245
246 void SetRootLayerScrollOffsetDelegate( 246 void SetRootLayerScrollOffsetDelegate(
247 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); 247 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate);
248 void OnRootLayerDelegatedScrollOffsetChanged();
248 void UpdateScrollOffsetDelegate(); 249 void UpdateScrollOffsetDelegate();
249 gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer); 250 gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer);
250 251
251 // Call this function when you expect there to be a swap buffer. 252 // Call this function when you expect there to be a swap buffer.
252 // See swap_promise.h for how to use SwapPromise. 253 // See swap_promise.h for how to use SwapPromise.
253 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); 254 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise);
254 255
255 // Take the |new_swap_promise| and append it to |swap_promise_list_|. 256 // Take the |new_swap_promise| and append it to |swap_promise_list_|.
256 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); 257 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise);
257 void FinishSwapPromises(CompositorFrameMetadata* metadata); 258 void FinishSwapPromises(CompositorFrameMetadata* metadata);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 400
400 scoped_ptr<PageScaleAnimation> page_scale_animation_; 401 scoped_ptr<PageScaleAnimation> page_scale_animation_;
401 402
402 private: 403 private:
403 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 404 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
404 }; 405 };
405 406
406 } // namespace cc 407 } // namespace cc
407 408
408 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 409 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698