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 "cc/overdraw_metrics.h" | 5 #include "cc/overdraw_metrics.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "cc/base/math_util.h" |
9 #include "cc/layer_tree_host.h" | 10 #include "cc/layer_tree_host.h" |
10 #include "cc/layer_tree_host_impl.h" | 11 #include "cc/layer_tree_host_impl.h" |
11 #include "cc/math_util.h" | |
12 #include "ui/gfx/quad_f.h" | 12 #include "ui/gfx/quad_f.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
14 #include "ui/gfx/transform.h" | 14 #include "ui/gfx/transform.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 OverdrawMetrics::OverdrawMetrics(bool record_metrics_for_frame) | 18 OverdrawMetrics::OverdrawMetrics(bool record_metrics_for_frame) |
19 : record_metrics_for_frame_(record_metrics_for_frame), | 19 : record_metrics_for_frame_(record_metrics_for_frame), |
20 pixels_painted_(0), | 20 pixels_painted_(0), |
21 pixels_uploaded_opaque_(0), | 21 pixels_uploaded_opaque_(0), |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 contents_texture_use_bytes_, | 258 contents_texture_use_bytes_, |
259 "RenderSurfaceTextureBytes", | 259 "RenderSurfaceTextureBytes", |
260 render_surface_texture_use_bytes_); | 260 render_surface_texture_use_bytes_); |
261 } | 261 } |
262 break; | 262 break; |
263 } | 263 } |
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 } // namespace cc | 267 } // namespace cc |
OLD | NEW |