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/debug_colors.h" | 6 #include "cc/debug_colors.h" |
7 #include "cc/picture_pile_impl.h" | 7 #include "cc/picture_pile_impl.h" |
8 #include "cc/region.h" | 8 #include "cc/region.h" |
9 #include "cc/rendering_stats.h" | 9 #include "cc/rendering_stats.h" |
10 #include "skia/ext/analysis_canvas.h" | 10 #include "skia/ext/analysis_canvas.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 gfx::RectToSkRect(content_clip), | 260 gfx::RectToSkRect(content_clip), |
261 SkRegion::kDifference_Op); | 261 SkRegion::kDifference_Op); |
262 unclipped.Subtract(content_clip); | 262 unclipped.Subtract(content_clip); |
263 | 263 |
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 analysis->is_transparent = canvas.isTransparent(); | 267 analysis->is_transparent = canvas.isTransparent(); |
268 analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color); | 268 analysis->is_solid_color = canvas.getColorIfSolid(&analysis->solid_color); |
269 analysis->is_cheap_to_raster = canvas.isCheap(); | 269 analysis->is_cheap_to_raster = canvas.isCheap(); |
| 270 canvas.consumeLazyPixelRefs(analysis->lazy_pixel_refs); |
270 } | 271 } |
271 | 272 |
272 PicturePileImpl::Analysis::Analysis() : | 273 PicturePileImpl::Analysis::Analysis() : |
273 is_solid_color(false), | 274 is_solid_color(false), |
274 is_transparent(false), | 275 is_transparent(false), |
275 is_cheap_to_raster(false) { | 276 is_cheap_to_raster(false) { |
276 } | 277 } |
277 | 278 |
278 } // namespace cc | 279 } // namespace cc |
OLD | NEW |