delegated_ink_point_renderer_skia_for_test.cc 821 B

12345678910111213141516171819202122232425
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/viz/test/delegated_ink_point_renderer_skia_for_test.h"
  5. #include <utility>
  6. #include "ui/gfx/delegated_ink_metadata.h"
  7. namespace viz {
  8. DelegatedInkPointRendererSkiaForTest::DelegatedInkPointRendererSkiaForTest() =
  9. default;
  10. DelegatedInkPointRendererSkiaForTest::~DelegatedInkPointRendererSkiaForTest() =
  11. default;
  12. void DelegatedInkPointRendererSkiaForTest::SetDelegatedInkMetadata(
  13. std::unique_ptr<gfx::DelegatedInkMetadata> metadata) {
  14. last_metadata_ = std::make_unique<gfx::DelegatedInkMetadata>(*metadata.get());
  15. DelegatedInkPointRendererBase::SetDelegatedInkMetadata(std::move(metadata));
  16. }
  17. } // namespace viz