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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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_web_graphics_context_3d.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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 std::unique_ptr<TaskRunnerProvider> task_runner_provider); 465 std::unique_ptr<TaskRunnerProvider> task_runner_provider);
466 void SetUIResourceManagerForTesting( 466 void SetUIResourceManagerForTesting(
467 std::unique_ptr<UIResourceManager> ui_resource_manager); 467 std::unique_ptr<UIResourceManager> ui_resource_manager);
468 468
469 // task_graph_runner() returns a valid value only until the LayerTreeHostImpl 469 // task_graph_runner() returns a valid value only until the LayerTreeHostImpl
470 // is created in CreateLayerTreeHostImpl(). 470 // is created in CreateLayerTreeHostImpl().
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(); 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 private: 481 private:
482 friend class LayerTreeHostSerializationTest; 482 friend class LayerTreeHostSerializationTest;
483 483
484 // This is the number of consecutive frames in which we want the content to be 484 // This is the number of consecutive frames in which we want the content to be
485 // suitable for GPU rasterization before re-enabling it. 485 // suitable for GPU rasterization before re-enabling it.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 MutatorHost* mutator_host_; 598 MutatorHost* mutator_host_;
599 599
600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; 600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_;
601 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_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698