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

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: Format. 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
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 void UpdateTopControlsState(TopControlsState constraints, 290 void UpdateTopControlsState(TopControlsState constraints,
291 TopControlsState current, 291 TopControlsState current,
292 bool animate); 292 bool animate);
293 293
294 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 294 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
295 295
296 Proxy* proxy() const { return proxy_.get(); } 296 Proxy* proxy() const { return proxy_.get(); }
297 TaskRunnerProvider* task_runner_provider() const { 297 TaskRunnerProvider* task_runner_provider() const {
298 return task_runner_provider_.get(); 298 return task_runner_provider_.get();
299 } 299 }
300 AnimationRegistrar* animation_registrar() const {
301 return animation_registrar_.get();
302 }
303 AnimationHost* animation_host() const { return animation_host_.get(); } 300 AnimationHost* animation_host() const { return animation_host_.get(); }
304 301
305 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } 302 bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
306 303
307 // CreateUIResource creates a resource given a bitmap. The bitmap is 304 // CreateUIResource creates a resource given a bitmap. The bitmap is
308 // generated via an interface function, which is called when initializing the 305 // generated via an interface function, which is called when initializing the
309 // resource and when the resource has been lost (due to lost context). The 306 // resource and when the resource has been lost (due to lost context). The
310 // parameter of the interface is a single boolean, which indicates whether the 307 // parameter of the interface is a single boolean, which indicates whether the
311 // resource has been lost or not. CreateUIResource returns an Id of the 308 // resource has been lost or not. CreateUIResource returns an Id of the
312 // resource, which is always positive. 309 // resource, which is always positive.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 bool content_is_suitable_for_gpu_rasterization_; 542 bool content_is_suitable_for_gpu_rasterization_;
546 bool gpu_rasterization_histogram_recorded_; 543 bool gpu_rasterization_histogram_recorded_;
547 544
548 SkColor background_color_; 545 SkColor background_color_;
549 bool has_transparent_background_; 546 bool has_transparent_background_;
550 547
551 bool have_scroll_event_handlers_; 548 bool have_scroll_event_handlers_;
552 EventListenerProperties event_listener_properties_[static_cast<size_t>( 549 EventListenerProperties event_listener_properties_[static_cast<size_t>(
553 EventListenerClass::kNumClasses)]; 550 EventListenerClass::kNumClasses)];
554 551
555 scoped_ptr<AnimationRegistrar> animation_registrar_;
556 scoped_ptr<AnimationHost> animation_host_; 552 scoped_ptr<AnimationHost> animation_host_;
557 553
558 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 554 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
559 555
560 // If set, then page scale animation has completed, but the client hasn't been 556 // If set, then page scale animation has completed, but the client hasn't been
561 // notified about it yet. 557 // notified about it yet.
562 bool did_complete_scale_animation_; 558 bool did_complete_scale_animation_;
563 559
564 bool in_paint_layer_contents_; 560 bool in_paint_layer_contents_;
565 561
(...skipping 23 matching lines...) Expand all
589 585
590 uint32_t surface_id_namespace_; 586 uint32_t surface_id_namespace_;
591 uint32_t next_surface_sequence_; 587 uint32_t next_surface_sequence_;
592 588
593 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 589 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
594 }; 590 };
595 591
596 } // namespace cc 592 } // namespace cc
597 593
598 #endif // CC_TREES_LAYER_TREE_HOST_H_ 594 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698