#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <utility>
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "base/timer/lap_timer.h"
#include "cc/paint/draw_looper.h"
#include "cc/paint/paint_op_buffer.h"
#include "cc/paint/paint_op_buffer_serializer.h"
#include "cc/paint/paint_op_writer.h"
#include "cc/paint/paint_shader.h"
#include "cc/test/test_options_provider.h"
#include "skia/ext/font_utils.h"
#include "testing/perf/perf_result_reporter.h"
#include "third_party/skia/include/core/SkBlurTypes.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/effects/SkColorMatrixFilter.h"
namespace cc {
namespace {
static const int kTimeLimitMillis = …;
static const int kNumWarmupRuns = …;
static const int kTimeCheckInterval = …;
static const size_t kMaxSerializedBufferBytes = …;
class PaintOpPerfTest : public testing::Test { … };
TEST_F(PaintOpPerfTest, SimpleOps) { … }
TEST_F(PaintOpPerfTest, DrawOps) { … }
TEST_F(PaintOpPerfTest, ManyFlagsOps) { … }
TEST_F(PaintOpPerfTest, TextOps) { … }
}
}