OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "cc/resources/raster_worker_pool.h" | 5 #include "cc/resources/raster_worker_pool.h" |
6 | 6 |
7 #include "base/debug/trace_event_synthetic_delay.h" | 7 #include "base/debug/trace_event_synthetic_delay.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Record the solid color prediction. | 116 // Record the solid color prediction. |
117 UMA_HISTOGRAM_BOOLEAN("Renderer4.SolidColorTilesAnalyzed", | 117 UMA_HISTOGRAM_BOOLEAN("Renderer4.SolidColorTilesAnalyzed", |
118 analysis_.is_solid_color); | 118 analysis_.is_solid_color); |
119 | 119 |
120 // Clear the flag if we're not using the estimator. | 120 // Clear the flag if we're not using the estimator. |
121 analysis_.is_solid_color &= kUseColorEstimator; | 121 analysis_.is_solid_color &= kUseColorEstimator; |
122 } | 122 } |
123 | 123 |
124 void RunRasterOnThread(unsigned thread_index, | 124 void RunRasterOnThread(unsigned thread_index, |
125 void* buffer, | 125 void* buffer, |
126 gfx::Size size, | 126 const gfx::Size& size, |
127 int stride) { | 127 int stride) { |
128 TRACE_EVENT2( | 128 TRACE_EVENT2( |
129 "cc", | 129 "cc", |
130 "RasterWorkerPoolTaskImpl::RunRasterOnThread", | 130 "RasterWorkerPoolTaskImpl::RunRasterOnThread", |
131 "data", | 131 "data", |
132 TracedValue::FromValue(DataAsValue().release()), | 132 TracedValue::FromValue(DataAsValue().release()), |
133 "raster_mode", | 133 "raster_mode", |
134 TracedValue::FromValue(RasterModeAsValue(raster_mode_).release())); | 134 TracedValue::FromValue(RasterModeAsValue(raster_mode_).release())); |
135 | 135 |
136 devtools_instrumentation::ScopedLayerTask raster_task( | 136 devtools_instrumentation::ScopedLayerTask raster_task( |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 | 761 |
762 internal::GraphNode* decode_node = | 762 internal::GraphNode* decode_node = |
763 CreateGraphNodeForTask(decode_task, priority, graph); | 763 CreateGraphNodeForTask(decode_task, priority, graph); |
764 decode_node->add_dependent(raster_node); | 764 decode_node->add_dependent(raster_node); |
765 } | 765 } |
766 | 766 |
767 return raster_node; | 767 return raster_node; |
768 } | 768 } |
769 | 769 |
770 } // namespace cc | 770 } // namespace cc |
OLD | NEW |