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

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

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/channel_main.h ('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
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 namespace cc { 53 namespace cc {
54 class AnimationRegistrar; 54 class AnimationRegistrar;
55 class AnimationHost; 55 class AnimationHost;
56 class BeginFrameSource; 56 class BeginFrameSource;
57 class HeadsUpDisplayLayer; 57 class HeadsUpDisplayLayer;
58 class Layer; 58 class Layer;
59 class LayerTreeHostImpl; 59 class LayerTreeHostImpl;
60 class LayerTreeHostImplClient; 60 class LayerTreeHostImplClient;
61 class LayerTreeHostSingleThreadClient; 61 class LayerTreeHostSingleThreadClient;
62 class LayerTreeMutator;
62 class PropertyTrees; 63 class PropertyTrees;
63 class Region; 64 class Region;
64 class RenderingStatsInstrumentation; 65 class RenderingStatsInstrumentation;
65 class ResourceProvider; 66 class ResourceProvider;
66 class ResourceUpdateQueue; 67 class ResourceUpdateQueue;
67 class SharedBitmapManager; 68 class SharedBitmapManager;
68 class TaskGraphRunner; 69 class TaskGraphRunner;
69 class TopControlsManager; 70 class TopControlsManager;
70 class UIResourceRequest; 71 class UIResourceRequest;
71 struct PendingPageScaleAnimation; 72 struct PendingPageScaleAnimation;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 bool visible() const { return visible_; } 236 bool visible() const { return visible_; }
236 237
237 void SetThrottleFrameProduction(bool throttle); 238 void SetThrottleFrameProduction(bool throttle);
238 239
239 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 240 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
240 bool use_anchor, 241 bool use_anchor,
241 float scale, 242 float scale,
242 base::TimeDelta duration); 243 base::TimeDelta duration);
243 244
244 void ApplyScrollAndScale(ScrollAndScaleSet* info); 245 void ApplyScrollAndScale(ScrollAndScaleSet* info);
246 void ApplyMutations(LayerTreeMutationMap* mutations);
245 void SetImplTransform(const gfx::Transform& transform); 247 void SetImplTransform(const gfx::Transform& transform);
246 248
247 void SetDeviceScaleFactor(float device_scale_factor); 249 void SetDeviceScaleFactor(float device_scale_factor);
248 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); 250 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor);
249 251
250 float device_scale_factor() const { return device_scale_factor_; } 252 float device_scale_factor() const { return device_scale_factor_; }
251 253
252 void UpdateTopControlsState(TopControlsState constraints, 254 void UpdateTopControlsState(TopControlsState constraints,
253 TopControlsState current, 255 TopControlsState current,
254 bool animate); 256 bool animate);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 318
317 PropertyTrees* property_trees() { return &property_trees_; } 319 PropertyTrees* property_trees() { return &property_trees_; }
318 bool needs_meta_info_recomputation() { 320 bool needs_meta_info_recomputation() {
319 return needs_meta_info_recomputation_; 321 return needs_meta_info_recomputation_;
320 } 322 }
321 323
322 void RecordFrameTimingEvents( 324 void RecordFrameTimingEvents(
323 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 325 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
324 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events); 326 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events);
325 327
328 void SetLayerTreeMutator(LayerTreeMutator* mutator);
329
326 Layer* LayerById(int id) const; 330 Layer* LayerById(int id) const;
327 void RegisterLayer(Layer* layer); 331 void RegisterLayer(Layer* layer);
328 void UnregisterLayer(Layer* layer); 332 void UnregisterLayer(Layer* layer);
329 // LayerTreeMutatorsClient implementation. 333 // LayerTreeMutatorsClient implementation.
330 bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override; 334 bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override;
331 void SetMutatorsNeedCommit() override; 335 void SetMutatorsNeedCommit() override;
332 void SetMutatorsNeedRebuildPropertyTrees() override; 336 void SetMutatorsNeedRebuildPropertyTrees() override;
333 void SetLayerFilterMutated(int layer_id, 337 void SetLayerFilterMutated(int layer_id,
334 LayerTreeType tree_type, 338 LayerTreeType tree_type,
335 const FilterOperations& filters) override; 339 const FilterOperations& filters) override;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 524
521 uint32_t surface_id_namespace_; 525 uint32_t surface_id_namespace_;
522 uint32_t next_surface_sequence_; 526 uint32_t next_surface_sequence_;
523 527
524 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 528 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
525 }; 529 };
526 530
527 } // namespace cc 531 } // namespace cc
528 532
529 #endif // CC_TREES_LAYER_TREE_HOST_H_ 533 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/channel_main.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698