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

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

Issue 1394263004: android webview: allow cc to fail hardware draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests compile but crash Created 5 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // and the active tree's size is now out of date. 268 // and the active tree's size is now out of date.
269 bool ViewportSizeInvalid() const; 269 bool ViewportSizeInvalid() const;
270 void SetViewportSizeInvalid(); 270 void SetViewportSizeInvalid();
271 void ResetViewportSizeInvalid(); 271 void ResetViewportSizeInvalid();
272 272
273 // Useful for debug assertions, probably shouldn't be used for anything else. 273 // Useful for debug assertions, probably shouldn't be used for anything else.
274 Proxy* proxy() const; 274 Proxy* proxy() const;
275 275
276 // Distribute the root scroll between outer and inner viewport scroll layer. 276 // Distribute the root 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(const gfx::ScrollOffset& root_offset); 278 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset);
279 279
280 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { 280 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) {
281 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); 281 layer_tree_host_impl_->ApplyScroll(layer, scroll_state);
282 } 282 }
283 283
284 // 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.
285 // See swap_promise.h for how to use SwapPromise. 285 // See swap_promise.h for how to use SwapPromise.
286 // 286 //
287 // A swap promise queued by QueueSwapPromise travels with the layer 287 // A swap promise queued by QueueSwapPromise travels with the layer
288 // information currently associated with the tree. For example, when 288 // information currently associated with the tree. For example, when
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 500
501 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 501 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
502 502
503 private: 503 private:
504 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 504 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
505 }; 505 };
506 506
507 } // namespace cc 507 } // namespace cc
508 508
509 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 509 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698