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

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

Issue 2717553005: cc: Glue LTHI and Scheduler changes for checker-imaging. (Closed)
Patch Set: .. Created 3 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/test_hooks.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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 TaskGraphRunner* task_graph_runner() const { return task_graph_runner_; } 471 TaskGraphRunner* task_graph_runner() const { return task_graph_runner_; }
472 472
473 void OnCommitForSwapPromises(); 473 void OnCommitForSwapPromises();
474 474
475 void RecordGpuRasterizationHistogram(const LayerTreeHostImpl* host_impl); 475 void RecordGpuRasterizationHistogram(const LayerTreeHostImpl* host_impl);
476 476
477 MicroBenchmarkController micro_benchmark_controller_; 477 MicroBenchmarkController micro_benchmark_controller_;
478 478
479 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 479 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
480 480
481 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_;
482
481 private: 483 private:
482 friend class LayerTreeHostSerializationTest; 484 friend class LayerTreeHostSerializationTest;
483 485
484 // This is the number of consecutive frames in which we want the content to be 486 // This is the number of consecutive frames in which we want the content to be
485 // suitable for GPU rasterization before re-enabling it. 487 // suitable for GPU rasterization before re-enabling it.
486 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; 488 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 };
487 489
488 void ApplyViewportDeltas(ScrollAndScaleSet* info); 490 void ApplyViewportDeltas(ScrollAndScaleSet* info);
489 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 491 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
490 void InitializeProxy(std::unique_ptr<Proxy> proxy); 492 void InitializeProxy(std::unique_ptr<Proxy> proxy);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 592
591 // Layer id to Layer map. 593 // Layer id to Layer map.
592 std::unordered_map<int, Layer*> layer_id_map_; 594 std::unordered_map<int, Layer*> layer_id_map_;
593 595
594 std::unordered_map<ElementId, Layer*, ElementIdHash> element_layers_map_; 596 std::unordered_map<ElementId, Layer*, ElementIdHash> element_layers_map_;
595 597
596 bool in_paint_layer_contents_ = false; 598 bool in_paint_layer_contents_ = false;
597 599
598 MutatorHost* mutator_host_; 600 MutatorHost* mutator_host_;
599 601
600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_;
601
602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
603 }; 603 };
604 604
605 } // namespace cc 605 } // namespace cc
606 606
607 #endif // CC_TREES_LAYER_TREE_HOST_H_ 607 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698