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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1511743004: cc: Fix recording of GPU rasterization histogram for renderer compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ForTesting to SetTaskRunnerProvider. Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 3bfd73ca5c9cd4108ee22462b1299c98330b5333..2dc93ee2bffcb5a45843584253e0d5e988298253 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -143,6 +143,10 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
return meta_information_sequence_number_;
}
+ bool gpu_rasterization_histogram_recorded() const {
+ return gpu_rasterization_histogram_recorded_;
+ }
+
void IncrementMetaInformationSequenceNumber() {
meta_information_sequence_number_++;
}
@@ -374,6 +378,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
void SetOutputSurfaceLostForTesting(bool is_lost) {
output_surface_lost_ = is_lost;
}
+ void SetTaskRunnerProviderForTesting(
+ scoped_ptr<TaskRunnerProvider> task_runner_provider);
// shared_bitmap_manager(), gpu_memory_buffer_manager(), and
// task_graph_runner() return valid values only until the LayerTreeHostImpl is
@@ -390,6 +396,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
void OnCommitForSwapPromises();
+ void RecordGpuRasterizationHistogram();
+
private:
void InitializeProxy(scoped_ptr<Proxy> proxy);
@@ -414,7 +422,6 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
typedef std::vector<UIResourceRequest> UIResourceRequestQueue;
UIResourceRequestQueue ui_resource_request_queue_;
- void RecordGpuRasterizationHistogram();
void CalculateLCDTextMetricsCallback(Layer* layer);
void NotifySwapPromiseMonitorsOfSetNeedsCommit();
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698