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

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

Issue 1782433002: CC Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasetests
Patch Set: Remove vtbl in LayerAnimationController. Fix formatting. Created 4 years, 9 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/test/layer_tree_test.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <limits> 11 #include <limits>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <unordered_map> 14 #include <unordered_map>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/cancelable_callback.h" 17 #include "base/cancelable_callback.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "cc/animation/animation.h" 23 #include "cc/animation/target_property.h"
24 #include "cc/base/cc_export.h" 24 #include "cc/base/cc_export.h"
25 #include "cc/debug/frame_timing_tracker.h" 25 #include "cc/debug/frame_timing_tracker.h"
26 #include "cc/debug/micro_benchmark.h" 26 #include "cc/debug/micro_benchmark.h"
27 #include "cc/debug/micro_benchmark_controller.h" 27 #include "cc/debug/micro_benchmark_controller.h"
28 #include "cc/input/event_listener_properties.h" 28 #include "cc/input/event_listener_properties.h"
29 #include "cc/input/input_handler.h" 29 #include "cc/input/input_handler.h"
30 #include "cc/input/layer_selection_bound.h" 30 #include "cc/input/layer_selection_bound.h"
31 #include "cc/input/scrollbar.h" 31 #include "cc/input/scrollbar.h"
32 #include "cc/input/top_controls_state.h" 32 #include "cc/input/top_controls_state.h"
33 #include "cc/layers/layer_lists.h" 33 #include "cc/layers/layer_lists.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 void UpdateTopControlsState(TopControlsState constraints, 288 void UpdateTopControlsState(TopControlsState constraints,
289 TopControlsState current, 289 TopControlsState current,
290 bool animate); 290 bool animate);
291 291
292 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 292 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
293 293
294 Proxy* proxy() const { return proxy_.get(); } 294 Proxy* proxy() const { return proxy_.get(); }
295 TaskRunnerProvider* task_runner_provider() const { 295 TaskRunnerProvider* task_runner_provider() const {
296 return task_runner_provider_.get(); 296 return task_runner_provider_.get();
297 } 297 }
298 AnimationRegistrar* animation_registrar() const {
299 return animation_registrar_.get();
300 }
301 AnimationHost* animation_host() const { return animation_host_.get(); } 298 AnimationHost* animation_host() const { return animation_host_.get(); }
302 299
303 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } 300 bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
304 301
305 // CreateUIResource creates a resource given a bitmap. The bitmap is 302 // CreateUIResource creates a resource given a bitmap. The bitmap is
306 // generated via an interface function, which is called when initializing the 303 // generated via an interface function, which is called when initializing the
307 // resource and when the resource has been lost (due to lost context). The 304 // resource and when the resource has been lost (due to lost context). The
308 // parameter of the interface is a single boolean, which indicates whether the 305 // parameter of the interface is a single boolean, which indicates whether the
309 // resource has been lost or not. CreateUIResource returns an Id of the 306 // resource has been lost or not. CreateUIResource returns an Id of the
310 // resource, which is always positive. 307 // resource, which is always positive.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 bool content_is_suitable_for_gpu_rasterization_; 540 bool content_is_suitable_for_gpu_rasterization_;
544 bool gpu_rasterization_histogram_recorded_; 541 bool gpu_rasterization_histogram_recorded_;
545 542
546 SkColor background_color_; 543 SkColor background_color_;
547 bool has_transparent_background_; 544 bool has_transparent_background_;
548 545
549 bool have_scroll_event_handlers_; 546 bool have_scroll_event_handlers_;
550 EventListenerProperties event_listener_properties_[static_cast<size_t>( 547 EventListenerProperties event_listener_properties_[static_cast<size_t>(
551 EventListenerClass::kNumClasses)]; 548 EventListenerClass::kNumClasses)];
552 549
553 scoped_ptr<AnimationRegistrar> animation_registrar_;
554 scoped_ptr<AnimationHost> animation_host_; 550 scoped_ptr<AnimationHost> animation_host_;
555 551
556 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 552 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
557 553
558 // If set, then page scale animation has completed, but the client hasn't been 554 // If set, then page scale animation has completed, but the client hasn't been
559 // notified about it yet. 555 // notified about it yet.
560 bool did_complete_scale_animation_; 556 bool did_complete_scale_animation_;
561 557
562 bool in_paint_layer_contents_; 558 bool in_paint_layer_contents_;
563 559
(...skipping 23 matching lines...) Expand all
587 583
588 uint32_t surface_id_namespace_; 584 uint32_t surface_id_namespace_;
589 uint32_t next_surface_sequence_; 585 uint32_t next_surface_sequence_;
590 586
591 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 587 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
592 }; 588 };
593 589
594 } // namespace cc 590 } // namespace cc
595 591
596 #endif // CC_TREES_LAYER_TREE_HOST_H_ 592 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698