Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: cc/debug/rasterize_and_record_benchmark_impl.cc

Issue 2678903003: cc: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/debug/rasterize_and_record_benchmark_impl.h" 5 #include "cc/debug/rasterize_and_record_benchmark_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <limits> 10 #include <limits>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 if (!is_solid_color) 201 if (!is_solid_color)
202 rasterize_results_.pixels_rasterized_with_non_solid_color += tile_size; 202 rasterize_results_.pixels_rasterized_with_non_solid_color += tile_size;
203 203
204 rasterize_results_.pixels_rasterized += tile_size; 204 rasterize_results_.pixels_rasterized += tile_size;
205 rasterize_results_.total_best_time += min_time; 205 rasterize_results_.total_best_time += min_time;
206 } 206 }
207 207
208 const RasterSource* layer_raster_source = layer->GetRasterSource(); 208 const RasterSource* layer_raster_source = layer->GetRasterSource();
209 rasterize_results_.total_memory_usage += 209 rasterize_results_.total_memory_usage +=
210 layer_raster_source->GetPictureMemoryUsage(); 210 layer_raster_source->GetMemoryUsage();
211 } 211 }
212 212
213 RasterizeAndRecordBenchmarkImpl::RasterizeResults::RasterizeResults() 213 RasterizeAndRecordBenchmarkImpl::RasterizeResults::RasterizeResults()
214 : pixels_rasterized(0), 214 : pixels_rasterized(0),
215 pixels_rasterized_with_non_solid_color(0), 215 pixels_rasterized_with_non_solid_color(0),
216 pixels_rasterized_as_opaque(0), 216 pixels_rasterized_as_opaque(0),
217 total_memory_usage(0), 217 total_memory_usage(0),
218 total_layers(0), 218 total_layers(0),
219 total_picture_layers(0), 219 total_picture_layers(0),
220 total_picture_layers_with_no_content(0), 220 total_picture_layers_with_no_content(0),
221 total_picture_layers_off_screen(0) { 221 total_picture_layers_off_screen(0) {
222 } 222 }
223 223
224 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} 224 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {}
225 225
226 } // namespace cc 226 } // namespace cc
OLDNEW
« no previous file with comments | « cc/blink/web_display_item_list_impl.cc ('k') | cc/layers/layer.h » ('j') | cc/layers/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698