diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/printing/metafile_skia_unittest.cc | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/printing/metafile_skia_unittest.cc')
-rw-r--r-- | chromium/printing/metafile_skia_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/printing/metafile_skia_unittest.cc b/chromium/printing/metafile_skia_unittest.cc index c337177bc30..af6c43c45c0 100644 --- a/chromium/printing/metafile_skia_unittest.cc +++ b/chromium/printing/metafile_skia_unittest.cc @@ -6,6 +6,7 @@ #include "cc/paint/paint_record.h" #include "printing/common/metafile_utils.h" +#include "printing/mojom/print.mojom.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkPictureRecorder.h" @@ -31,7 +32,7 @@ TEST(MetafileSkiaTest, TestFrameContent) { SkSize page_size = SkSize::Make(kPageSideLen, kPageSideLen); // Finish creating the entire metafile. - MetafileSkia metafile(SkiaDocumentType::MSKP, 1); + MetafileSkia metafile(mojom::SkiaDocumentType::kMSKP, 1); metafile.AppendPage(page_size, std::move(record)); metafile.AppendSubframeInfo(content_id, 2, std::move(pic_holder)); metafile.FinishFrameContent(); @@ -43,7 +44,7 @@ TEST(MetafileSkiaTest, TestFrameContent) { SkPictureRecorder recorder; SkCanvas* canvas = recorder.beginRecording(kPictureSideLen, kPictureSideLen); SkPaint paint; - paint.setStyle(SkPaint::kStrokeAndFill_Style); + paint.setStyle(SkPaint::kFill_Style); paint.setColor(SK_ColorRED); paint.setAlpha(SK_AlphaOPAQUE); canvas->drawRect(SkRect::MakeXYWH(0, 0, kPictureSideLen, kPictureSideLen), @@ -52,7 +53,7 @@ TEST(MetafileSkiaTest, TestFrameContent) { EXPECT_TRUE(picture); // Get the complete picture by replacing the placeholder. - DeserializationContext subframes; + PictureDeserializationContext subframes; subframes[content_id] = picture; SkDeserialProcs procs = DeserializationProcs(&subframes); sk_sp<SkPicture> pic = SkPicture::MakeFromStream(metafile_stream, &procs); |