// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_DELEGATED_INK_POINT_PIXEL_TEST_HELPER_H_ #define COMPONENTS_VIZ_SERVICE_DISPLAY_DELEGATED_INK_POINT_PIXEL_TEST_HELPER_H_ #include <unordered_map> #include <vector> #include "base/memory/raw_ptr.h" #include "ui/gfx/delegated_ink_metadata.h" namespace gfx { class DelegatedInkPoint; } // namespace gfx namespace viz { class DelegatedInkPointRendererBase; class DirectRenderer; // Helper class for running pixel tests to flex the delegated ink point // renderers. |renderer_| must be supplied, either when constructed or later // after cc::PixelTest::SetUp() has run, which creates the renderer. Then it // can be used to create and give ink metadata and points to |renderer_|'s // delegated ink point renderer. The metadata and points are stored so that the // information can be used for future points and metadata (i.e. when a point // needs to match the metadata for the first point of a trail) or when // determining the damage rect to apply to a render pass. class DelegatedInkPointPixelTestHelper { … }; } // namespace viz #endif // COMPONENTS_VIZ_SERVICE_DISPLAY_DELEGATED_INK_POINT_PIXEL_TEST_HELPER_H_