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/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/debug/devtools_instrumentation.h" | 10 #include "cc/debug/devtools_instrumentation.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 TracedValue::FromValue(DataAsValue().release())); | 80 TracedValue::FromValue(DataAsValue().release())); |
81 | 81 |
82 DCHECK(picture_pile_.get()); | 82 DCHECK(picture_pile_.get()); |
83 DCHECK(rendering_stats_); | 83 DCHECK(rendering_stats_); |
84 | 84 |
85 PicturePileImpl* picture_clone = | 85 PicturePileImpl* picture_clone = |
86 picture_pile_->GetCloneForDrawingOnThread(thread_index); | 86 picture_pile_->GetCloneForDrawingOnThread(thread_index); |
87 | 87 |
88 DCHECK(picture_clone); | 88 DCHECK(picture_clone); |
89 | 89 |
90 picture_clone->AnalyzeInRect(content_rect_, contents_scale_, &analysis_); | 90 picture_clone->AnalyzeInRect( |
| 91 content_rect_, contents_scale_, &analysis_, rendering_stats_); |
91 | 92 |
92 // Record the solid color prediction. | 93 // Record the solid color prediction. |
93 UMA_HISTOGRAM_BOOLEAN("Renderer4.SolidColorTilesAnalyzed", | 94 UMA_HISTOGRAM_BOOLEAN("Renderer4.SolidColorTilesAnalyzed", |
94 analysis_.is_solid_color); | 95 analysis_.is_solid_color); |
95 | 96 |
96 // Clear the flag if we're not using the estimator. | 97 // Clear the flag if we're not using the estimator. |
97 analysis_.is_solid_color &= kUseColorEstimator; | 98 analysis_.is_solid_color &= kUseColorEstimator; |
98 } | 99 } |
99 | 100 |
100 bool RunRasterOnThread(unsigned thread_index, | 101 bool RunRasterOnThread(unsigned thread_index, |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 587 |
587 internal::GraphNode* decode_node = CreateGraphNodeForTask( | 588 internal::GraphNode* decode_node = CreateGraphNodeForTask( |
588 decode_task, priority, graph); | 589 decode_task, priority, graph); |
589 decode_node->add_dependent(raster_node); | 590 decode_node->add_dependent(raster_node); |
590 } | 591 } |
591 | 592 |
592 return raster_node; | 593 return raster_node; |
593 } | 594 } |
594 | 595 |
595 } // namespace cc | 596 } // namespace cc |
OLD | NEW |