Spanification: Fix RasterizeAndRecordBenchmarkImpl
Replace C-style array with std::array. Bug: 351564777 Change-Id: I4c3fdcc51bebf294203c1ed43c15c7d57ed9498f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6096836 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Sam Fortiner <samfort@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1397680}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
dba82c8848
commit
4ece6f6d3e
@ -2,11 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef UNSAFE_BUFFERS_BUILD
|
||||
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
|
||||
#pragma allow_unsafe_buffers
|
||||
#endif
|
||||
|
||||
#include "cc/benchmarks/rasterize_and_record_benchmark_impl.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
@ -7,6 +7,8 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/time/time.h"
|
||||
#include "cc/benchmarks/micro_benchmark_impl.h"
|
||||
@ -38,8 +40,8 @@ class RasterizeAndRecordBenchmarkImpl : public MicroBenchmarkImpl {
|
||||
int pixels_rasterized;
|
||||
int pixels_rasterized_with_non_solid_color;
|
||||
int pixels_rasterized_as_opaque;
|
||||
int visible_pixels_by_lcd_text_disallowed_reason
|
||||
[kLCDTextDisallowedReasonCount];
|
||||
std::array<int, kLCDTextDisallowedReasonCount>
|
||||
visible_pixels_by_lcd_text_disallowed_reason;
|
||||
base::TimeDelta total_best_time;
|
||||
int total_layers;
|
||||
int total_picture_layers;
|
||||
|
Reference in New Issue
Block a user