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

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

Issue 1130043003: [Sketch] CC Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implscroll
Patch Set: Delete more (headers and animation_registrar_ leftover) Created 5 years, 7 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/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host.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 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_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 void SetDeviceScaleFactor(float device_scale_factor); 248 void SetDeviceScaleFactor(float device_scale_factor);
249 float device_scale_factor() const { return device_scale_factor_; } 249 float device_scale_factor() const { return device_scale_factor_; }
250 250
251 void UpdateTopControlsState(TopControlsState constraints, 251 void UpdateTopControlsState(TopControlsState constraints,
252 TopControlsState current, 252 TopControlsState current,
253 bool animate); 253 bool animate);
254 254
255 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 255 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
256 256
257 Proxy* proxy() const { return proxy_.get(); } 257 Proxy* proxy() const { return proxy_.get(); }
258 AnimationRegistrar* animation_registrar() const {
259 return animation_registrar_.get();
260 }
261 AnimationHost* animation_host() const { return animation_host_.get(); } 258 AnimationHost* animation_host() const { return animation_host_.get(); }
262 259
263 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } 260 bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
264 261
265 // CreateUIResource creates a resource given a bitmap. The bitmap is 262 // CreateUIResource creates a resource given a bitmap. The bitmap is
266 // generated via an interface function, which is called when initializing the 263 // generated via an interface function, which is called when initializing the
267 // resource and when the resource has been lost (due to lost context). The 264 // resource and when the resource has been lost (due to lost context). The
268 // parameter of the interface is a single boolean, which indicates whether the 265 // parameter of the interface is a single boolean, which indicates whether the
269 // resource has been lost or not. CreateUIResource returns an Id of the 266 // resource has been lost or not. CreateUIResource returns an Id of the
270 // resource, which is always positive. 267 // resource, which is always positive.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 bool has_gpu_rasterization_trigger_; 449 bool has_gpu_rasterization_trigger_;
453 bool content_is_suitable_for_gpu_rasterization_; 450 bool content_is_suitable_for_gpu_rasterization_;
454 bool gpu_rasterization_histogram_recorded_; 451 bool gpu_rasterization_histogram_recorded_;
455 452
456 SkColor background_color_; 453 SkColor background_color_;
457 bool has_transparent_background_; 454 bool has_transparent_background_;
458 455
459 typedef ScopedPtrVector<PrioritizedResource> TextureList; 456 typedef ScopedPtrVector<PrioritizedResource> TextureList;
460 size_t partial_texture_update_requests_; 457 size_t partial_texture_update_requests_;
461 458
462 scoped_ptr<AnimationRegistrar> animation_registrar_;
463 scoped_ptr<AnimationHost> animation_host_; 459 scoped_ptr<AnimationHost> animation_host_;
464 460
465 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 461 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
466 462
467 // If set, then page scale animation has completed, but the client hasn't been 463 // If set, then page scale animation has completed, but the client hasn't been
468 // notified about it yet. 464 // notified about it yet.
469 bool did_complete_scale_animation_; 465 bool did_complete_scale_animation_;
470 466
471 bool in_paint_layer_contents_; 467 bool in_paint_layer_contents_;
472 468
(...skipping 21 matching lines...) Expand all
494 490
495 uint32_t surface_id_namespace_; 491 uint32_t surface_id_namespace_;
496 uint32_t next_surface_sequence_; 492 uint32_t next_surface_sequence_;
497 493
498 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 494 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
499 }; 495 };
500 496
501 } // namespace cc 497 } // namespace cc
502 498
503 #endif // CC_TREES_LAYER_TREE_HOST_H_ 499 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698