#include "components/viz/service/display/delegated_ink_point_pixel_test_helper.h"
#include <memory>
#include <utility>
#include "components/viz/service/display/direct_renderer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace viz {
DelegatedInkPointPixelTestHelper::DelegatedInkPointPixelTestHelper() = default;
DelegatedInkPointPixelTestHelper::~DelegatedInkPointPixelTestHelper() = default;
DelegatedInkPointPixelTestHelper::DelegatedInkPointPixelTestHelper(
DirectRenderer* renderer)
: … { … }
void DelegatedInkPointPixelTestHelper::SetRendererAndCreateInkRenderer(
DirectRenderer* renderer) { … }
void DelegatedInkPointPixelTestHelper::DropRenderer() { … }
void DelegatedInkPointPixelTestHelper::CreateInkRenderer() { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendMetadata(
const gfx::PointF& point,
float diameter,
SkColor4f color,
base::TimeTicks timestamp,
const gfx::RectF& presentation_area) { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendMetadataFromLastPoint() { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendMetadataFromLastPoint(
int32_t pointer_id) { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendPoint(
const gfx::PointF& point,
base::TimeTicks timestamp) { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendPoint(
const gfx::PointF& point,
base::TimeTicks timestamp,
int32_t pointer_id) { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendPointFromLastPoint(
const gfx::PointF& point) { … }
void DelegatedInkPointPixelTestHelper::CreateAndSendPointFromLastPoint(
int32_t pointer_id,
const gfx::PointF& point) { … }
gfx::Rect DelegatedInkPointPixelTestHelper::GetDelegatedInkDamageRect() { … }
gfx::Rect DelegatedInkPointPixelTestHelper::GetDelegatedInkDamageRect(
int32_t pointer_id) { … }
}