| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "base/debug/trace_event.h" | 5 #include "base/debug/trace_event.h" |
| 6 #include "cc/base/region.h" | 6 #include "cc/base/region.h" |
| 7 #include "cc/debug/debug_colors.h" | 7 #include "cc/debug/debug_colors.h" |
| 8 #include "cc/debug/rendering_stats.h" | 8 #include "cc/debug/rendering_stats.h" |
| 9 #include "cc/resources/picture_pile_impl.h" | 9 #include "cc/resources/picture_pile_impl.h" |
| 10 #include "skia/ext/analysis_canvas.h" | 10 #include "skia/ext/analysis_canvas.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 int64 total_pixels_rasterized = 0; | 242 int64 total_pixels_rasterized = 0; |
| 243 Raster(&canvas, content_rect, contents_scale, &total_pixels_rasterized); | 243 Raster(&canvas, content_rect, contents_scale, &total_pixels_rasterized); |
| 244 | 244 |
| 245 analysis->is_transparent = canvas.isTransparent(); | 245 analysis->is_transparent = canvas.isTransparent(); |
| 246 analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color); | 246 analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color); |
| 247 analysis->is_cheap_to_raster = canvas.isCheap(); | 247 analysis->is_cheap_to_raster = canvas.isCheap(); |
| 248 canvas.consumeLazyPixelRefs(&analysis->lazy_pixel_refs); | 248 canvas.consumeLazyPixelRefs(&analysis->lazy_pixel_refs); |
| 249 } | 249 } |
| 250 | 250 |
| 251 PicturePileImpl::Analysis::Analysis() : | 251 PicturePileImpl::Analysis::Analysis() |
| 252 is_solid_color(false), | 252 : is_solid_color(false), |
| 253 is_transparent(false), | 253 is_transparent(false), |
| 254 is_cheap_to_raster(false) { | 254 is_cheap_to_raster(false) { |
| 255 } | 255 } |
| 256 | 256 |
| 257 PicturePileImpl::Analysis::~Analysis() { | 257 PicturePileImpl::Analysis::~Analysis() { |
| 258 } | 258 } |
| 259 | 259 |
| 260 } // namespace cc | 260 } // namespace cc |
| OLD | NEW |