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

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

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add big fat TODOs in scheduler code to implement proper idle task scheduling and ensure GC is runni… Created 4 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 class AnimationEvents; 55 class AnimationEvents;
56 class AnimationHost; 56 class AnimationHost;
57 class BeginFrameSource; 57 class BeginFrameSource;
58 class HeadsUpDisplayLayer; 58 class HeadsUpDisplayLayer;
59 class ImageSerializationProcessor; 59 class ImageSerializationProcessor;
60 class Layer; 60 class Layer;
61 class LayerTreeHostImpl; 61 class LayerTreeHostImpl;
62 class LayerTreeHostImplClient; 62 class LayerTreeHostImplClient;
63 class LayerTreeHostSingleThreadClient; 63 class LayerTreeHostSingleThreadClient;
64 class LayerTreeMutator;
64 class PropertyTrees; 65 class PropertyTrees;
65 class Region; 66 class Region;
66 class RemoteProtoChannel; 67 class RemoteProtoChannel;
67 class RenderingStatsInstrumentation; 68 class RenderingStatsInstrumentation;
68 class ResourceProvider; 69 class ResourceProvider;
69 class ResourceUpdateQueue; 70 class ResourceUpdateQueue;
70 class SharedBitmapManager; 71 class SharedBitmapManager;
71 class TaskGraphRunner; 72 class TaskGraphRunner;
72 class TopControlsManager; 73 class TopControlsManager;
73 class UIResourceRequest; 74 class UIResourceRequest;
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void set_surface_id_namespace(uint32_t id_namespace); 342 void set_surface_id_namespace(uint32_t id_namespace);
342 SurfaceSequence CreateSurfaceSequence(); 343 SurfaceSequence CreateSurfaceSequence();
343 344
344 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); 345 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
345 346
346 PropertyTrees* property_trees() { return &property_trees_; } 347 PropertyTrees* property_trees() { return &property_trees_; }
347 bool needs_meta_info_recomputation() { 348 bool needs_meta_info_recomputation() {
348 return needs_meta_info_recomputation_; 349 return needs_meta_info_recomputation_;
349 } 350 }
350 351
352 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
353
351 Layer* LayerById(int id) const; 354 Layer* LayerById(int id) const;
352 355
353 void AddLayerShouldPushProperties(Layer* layer); 356 void AddLayerShouldPushProperties(Layer* layer);
354 void RemoveLayerShouldPushProperties(Layer* layer); 357 void RemoveLayerShouldPushProperties(Layer* layer);
355 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); 358 std::unordered_set<Layer*>& LayersThatShouldPushProperties();
356 bool LayerNeedsPushPropertiesForTesting(Layer* layer); 359 bool LayerNeedsPushPropertiesForTesting(Layer* layer);
357 360
358 void RegisterLayer(Layer* layer); 361 void RegisterLayer(Layer* layer);
359 void UnregisterLayer(Layer* layer); 362 void UnregisterLayer(Layer* layer);
360 // MutatorHostClient implementation. 363 // MutatorHostClient implementation.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 589
587 uint32_t surface_id_namespace_; 590 uint32_t surface_id_namespace_;
588 uint32_t next_surface_sequence_; 591 uint32_t next_surface_sequence_;
589 592
590 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 593 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
591 }; 594 };
592 595
593 } // namespace cc 596 } // namespace cc
594 597
595 #endif // CC_TREES_LAYER_TREE_HOST_H_ 598 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698