154 Commits

Author SHA1 Message Date
Lei Zhang
f1d868b949 Roll abseil, build, buildtools, clang and rust
Roll third_party/abseil-cpp/ 2a7d49fc3..dd4432fb0 (1 commit)

2a7d49fc39..dd4432fb02

Created with:
  roll-dep third_party/abseil-cpp

Roll build/ d1cac3b4c..08cae1166 (30 commits)

d1cac3b4c4..08cae1166f

Created with:
  roll-dep build

Roll buildtools/ fef8d6947..11cc2bd83 (3 commits)

fef8d6947f..11cc2bd830

Created with:
  roll-dep buildtools

Roll tools/clang/ c5563f5d6..772ec0f7d (14 commits)

c5563f5d68..772ec0f7db

Roll clang+rust llvmorg-23-init-5669-g8a0be0bc-1 : llvmorg-23-init-5669-g8a0be0bc-4

Created with:
  roll-dep tools/clang

Roll third_party/rust/ 99af94d26..847ac6aa3 (62 commits)

99af94d26d..847ac6aa39

Created with:
  roll-dep third_party/rust

Roll tools/rust/ 86b5fd79d..69bb79a13 (1 commit)

86b5fd79d4..69bb79a132

Created with:
  roll-dep tools/rust

Change-Id: I970a437a473c6a5d8f972331c5c663824fe22d96
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/145970
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2026-04-09 11:26:16 -07:00
April Kallmeyer
ea7a02d5eb Roll third_party/skia/ 9a983f6c2..90b1d0b22 (382 commits; 37 trivial rolls)
https://skia.googlesource.com/skia.git/+log/9a983f6c2c06..90b1d0b22a61

Created with:
  roll-dep third_party/skia

Change-Id: I7cacfcb60f8852361d344f4d25d74873a30f8bff
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/144751
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: April Kallmeyer <ask@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
2026-03-13 09:07:06 -07:00
Lei Zhang
dd3d4a5fd5 Roll third_party/skia/ 39aa2a702..9a983f6c2 (1 commit)
https://skia.googlesource.com/skia.git/+log/39aa2a70213a..9a983f6c2c06

Then fix the build by updating skia/BUILD.gn to include
//third_party/skia/src/ports/SkLog_$variant.cpp.

Created with:
  roll-dep third_party/skia

Change-Id: Ic303d02a88d9cdccacdf4453e580b70e7289f074
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/143774
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2026-02-25 14:39:03 -08:00
Tom Sepez
707d00c215 Fix build when pdf_enable_fontations=false and pdf_enable_rust_png=true
Bring "$root_gen_dir/third_party/skia into the include directory set.

-- Add missing fontations sources in anticipation of future usage.

Bug: 42271123
Change-Id: I4fdcd3e9511762b745d473965ffe090918d223a9
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/143792
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
2026-02-25 12:35:19 -08:00
Lei Zhang
bbf3fd2cd4 Roll third_party/skia/ c497e689b..356c7267f (1 commit)
https://skia.googlesource.com/skia.git/+log/c497e689bf3d..356c7267fa45

Add SK_ENABLE_LEGACY_SHADERCONTEXT to skia/BUILD.gn to match
https://crrev.com/1575259 and let the rendering stay the same for now.

Created with:
  roll-dep third_party/skia

Change-Id: Ic7cf14968c6621a0468359abac3537294899a461
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/143530
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
2026-02-23 10:19:13 -08:00
Kaylee Lubick
f9ca48e5d2 [skia] Delete reference to empty file
This has been empty for a while and Skia plans to delete it.

Change-Id: I20f22b798ce4eaa2911d76bc9085908e7cf575b2
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/143290
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Kaylee Lubick <kjlubick@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2026-02-18 11:49:51 -08:00
Lei Zhang
9b6e85a3fd Roll abseil, build, buildtools, clang and rust
Roll build/ 26e5b4f1d..06d247cb9 (91 commits)

26e5b4f1d8..06d247cb91

Created with:
  roll-dep build

Roll buildtools/ 4dc32b3f5..6a18683f5 (1 commit)

4dc32b3f51..6a18683f55

Created with:
  roll-dep buildtools

Roll third_party/abseil-cpp/ 1597226b8..675d3d37e (5 commits)

1597226b82..675d3d37ec

Created with:
  roll-dep third_party/abseil-cpp

Roll third_party/rust/ c45037002..7da7c8be1 (44 commits)

c450370025..7da7c8be1f

Then update crate versions in skia/BUILD.gn.

Created with:
  roll-dep third_party/rust

Roll tools/rust/ d1690596d..8a3ca2dfc (11 commits)

d1690596df..8a3ca2dfc9

Created with:
  roll-dep tools/rust

Roll tools/clang/ 5ec0da997..a1542f295 (13 commits)

5ec0da997c..a1542f2952

Roll clang llvmorg-22-init-17020-gbd1bd178-2 : llvmorg-23-init-2224-g5bd8dadb-1

Created with:
  roll-dep tools/clang

Change-Id: I4596db833bfba3b787e3b3c7805417cf7ce868d8
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/142154
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
2026-02-03 11:37:39 -08:00
Nico Weber
3b52741bcb Stop reading arm_use_neon
It's always true after
https://chromium-review.googlesource.com/c/chromium/src/+/7262201

(Probably not rolled into pdfium yet, but should be fine landing
this before //build is updated. The build_overrides/build.gni change
even fixes one prerequisite for that.)

Bug: 469092869
Change-Id: I0a2179a629a304d26e4308f1d2b2c816504fe05d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/139950
Reviewed-by: Nico Weber <thakis@google.com>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2025-12-17 12:00:19 -08:00
April Kallmeyer
79d0cbc2d0 Roll build, third_party/rust, and tools/rust
Roll build/ 3c58005ad..2fd7c745e (22 commits)
Roll third_party/rust/ 84c4bbe80..8b4e75b57 (49 commits)
Roll tools/rust/ 59ea51c9c..ca091d956 (3 commits)

3c58005adf..2fd7c745eb
84c4bbe803..8b4e75b574
59ea51c9c5..ca091d9562

Created with:
  roll-dep build
  roll-dep third_party/rust
  roll-dep tools/rust

Change-Id: I3026de3d99a110f98be5e50e1ef2121406dd3b5f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/139370
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Auto-Submit: April Kallmeyer <ask@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2025-12-11 13:27:20 -08:00
Kaylee Lubick
66c6bc4096 Roll Skia and update serial proc return value
https://skia.googlesource.com/skia.git/+log/a1ff58d34294..a9e9573a3f
(330 commits)

This also removes old defines from SkPdfiumUserConfig.h that no
longer do anything in Skia. This will allow Chromium to be updated
to the newer versions of various APIs that take/return const SkDatas.

BUILD.gn changes for rust refactor were cribbed from
https://crrev.com/c/7130444

Change-Id: I991542c8f5f1e15cd55117d5ee0b898e4a6442c8
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/138690
Auto-Submit: Kaylee Lubick <kjlubick@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2025-12-01 07:17:01 -08:00
Andy Phan
b3b74b1d18 Roll build, third_party/rust, clang, and tools/rust
Update Skia font dependency versions to match http://crrev.com/1522294.
Then roll.

Roll build/ f6b5f3e89..8c2e4caf4 (113 commits)

f6b5f3e896..8c2e4caf42

Created with:
  roll-dep build


Roll third_party/rust/ ea2d1926a..84c4bbe80 (83 commits)

ea2d1926aa..84c4bbe803

Created with:
  roll-dep third_party/rust


Roll tools/clang/ d2182ae5c..b82de5de2 (19 commits)

d2182ae5cc..b82de5de26

Roll clang+rust
llvmorg-22-init-8940-g4d4cb757-1:llvmorg-22-init-12326-g8a5f1533-1

Created with:
  roll-dep tools/clang


Roll tools/rust/ 0eaaeed1c..f75012ad3 (5 commits)

0eaaeed1ca..f75012ad31

Created with:
  roll-dep tools/rust

Change-Id: I6dd3cf3101c8f517b5486a425bfa851099b9ec12
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/137471
Commit-Queue: Lei Zhang <thestig@chromium.org>
Auto-Submit: Andy Phan <andyphan@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2025-11-03 16:50:51 -08:00
Lukasz Anforowicz
b73d6847a7 [rust png] Stop using SkXPS...PngHelpers.h from PDFium.
This supports changing the Skia API as discussed in
https://review.skia.org/1082338

Bug: 381900683
Change-Id: I00f6c56ac4bad1e1fb6cae978ddd1d37b21d6b22
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/137410
Auto-Submit: Łukasz Anforowicz <lukasza@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2025-10-28 21:01:05 -07:00
Lukasz Anforowicz
e136238ea9 [rust png] Use new overload of SkXPS::MakeDocument.
This CL switches to using the new overload of `SkXPS::MakeDocument`
introduced in https://review.skia.org/1073497.  The new overload forces
Skia users to explicitly choose which PNG encoder to use.

Bug: 381900683
Change-Id: I74c3d7ec514e5bea6f9cdb065018ec39a2feea99
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/137170
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2025-10-24 13:22:51 -07:00
Lukasz Anforowicz
ab7e415be9 [rust png] Use Rust-based PNG codec from PDFium tests.
After this CL, if `pdf_enable_rust_png` GN arg is set, then PDFium tests
will use Rust-based PNG codec (instead of `libpng`-based one) from
`pdfium/testing/helpers/write.cc` and from
`testing/image_diff/image_diff_png...`.

Switching the production code underneath `core/fxcodec/png/...` is
deferred to a future CL (see
https://pdfium-review.googlesource.com/135730).

CLs that demonstrate test coverage of PDFium CQ:

- https://pdfium-review.googlesource.com/136111 - is an ad-hoc,
  non-landable CL, which replaces `SkPngEncoder` usage in `write.cc`with
  `NOTREACHED` to discover which tests cover it.  All tests pass in this
  CL (i.e. this path is not covered by CQ).
- https://pdfium-review.googlesource.com/136392 is a similar CL for
  encoding/decoding path under `testing/image_diff/...` (there are a few
  failing tests)
- https://pdfium-review.googlesource.com/136110 is a similar CL for
  decoding path under `core/fxcodec/png/...` (there are a few failing
  tests)

Bug: 444045690
Change-Id: Ica54e6e82d5646267242fd0a6d6538389bd18deb
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/135630
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@google.com>
2025-10-13 14:05:49 -07:00
Lukasz Anforowicz
98d2a1cee0 [rust png] Remove unused/obsolete SK_ENCODE_PNG define.
AFAICT the `SK_ENCODE_PNG` is

1. Defined in Pdfium's `skia/BUILD.gn` [1]
2. Mentioned in comments in `third_party/pdfium/skia/BUILD.gn` and
   `third_party/skia/RELEASE_NOTES.md`.
3. Not used anywhere else

Therefore let's remove the definition from Pdfium, because it seems
unused and unnecessary.  FWIW the definition has been introduced in
https://pdfium-review.googlesource.com/c/pdfium/+/101450

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/pdfium/skia/BUILD.gn;l=58;drc=7be0974785d088e89a910729893ffc88f581ff50

Bug: chromium:444045690
Change-Id: I54c068324e23cab0d52d3078113798703748bfec
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/135613
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
2025-09-10 15:44:51 -07:00
Andy Phan
49ba734689 Roll abseil, build, buildtools, libc++, and rust
In order to roll, perform the following:
1. Update skia/BUILD.gn to match the font versions in
   https://crrev.com/c/6909036.
2. Update test expectations in RetainPtr.SetContains.

Roll third_party/abseil-cpp/ 77596c036..04fe3ac35 (7 commits)

77596c0368..04fe3ac35a


Roll build/ ac578f1d4..4d26bd650 (189 commits)

ac578f1d43..4d26bd6500


Roll buildtools/ 460cef896..10b037a66 (41 commits)

460cef8967..10b037a661


Roll third_party/libc++/src/ adbb4a521..954086abf (91 commits)

adbb4a5210..954086abf1


Roll third_party/rust/ 5f298b3f4..ea2d1926a (51 commits)

5f298b3f4b..ea2d1926aa

Change-Id: I44398ecf727111c68599361a0ade428b5ae50255
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/135590
Commit-Queue: Andy Phan <andyphan@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2025-09-09 15:04:08 -07:00
Lei Zhang
7be0974785 Roll third_party/rust/ 8bbd6f555..5f298b3f4 (29 commits)
8bbd6f5553..5f298b3f4b

Then update skia/BUILD.gn to use the newer library versions.

Created with:
  roll-dep third_party/rust

Change-Id: I5fa4f44053f2077515bc2367d3f7ee8437ce5994
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/134791
Commit-Queue: Lei Zhang <thestig@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2025-08-13 15:11:10 -07:00
Andy Phan
3c3290b5c6 Update skia/BUILD.gn and roll third_party/skia
https://skia-review.googlesource.com/c/skia/+/1013977 makes PathOps an
optional dependency. Since PDFium needs it, update skia/BUILD.gn to
include it. Then, roll to that commit.

Roll third_party/skia/ ddb944ebd..e8ef1a27c (1 commit)

https://skia.googlesource.com/skia.git/+log/ddb944ebd78c..e8ef1a27ca8a

Created with:
  roll-dep third_party/skia

Change-Id: I50e16a6d777fbfd0b71c163adf2e5cdf6e21621d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/134013
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
2025-07-11 10:07:57 -07:00
Andy Phan
58e2574685 Roll third_party/rust, third_party/skia
Roll third_party/rust/ 483563e40..8bbd6f555 (49 commits)

483563e40f..8bbd6f5553

Created with:
  roll-dep third_party/rust

Roll third_party/skia/ eaa402365..9a5e09aac (175 commits; 16 trivial
rolls)

https://skia.googlesource.com/skia.git/+log/eaa402365ff5..9a5e09aac10a

This is a partial roll, since the next commit introduces compiler
errors: https://skia-review.googlesource.com/c/skia/+/1009933.

Created with:
  roll-dep third_party/skia

Change-Id: I6f367ba318e8121b600b3e564a4a7eb8ede34e54
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/133750
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
2025-07-10 15:55:39 -07:00
Tom Sepez
af8ef613c2 Remove another is_nacl test from PDFium build file.
It is nacl nevermore.

Change-Id: Ibebeabc78ca5d81f37618516d6898fe80c94ccc3
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/133590
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Auto-Submit: Tom Sepez <tsepez@chromium.org>
2025-06-24 10:43:06 -07:00
Andy Phan
6551a206ab Roll third_party/skia/ 68e53210b..290c4fb91 (1 commit)
https://skia.googlesource.com/skia.git/+log/68e53210b76c..290c4fb91fa0

Use more granular lists in skia/BUILD.gn as mentioned in
https://skia-review.googlesource.com/c/skia/+/982376. Partially roll to
prove that this fixes the build error.

Created with:
  roll-dep third_party/skia

Change-Id: I96dcef147cf408084e9a8900f5401f5567c97bc3
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/131612
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Auto-Submit: Andy Phan <andyphan@chromium.org>
2025-05-14 13:47:46 -07:00
Lei Zhang
073395985e Roll third_party/skia/ b5b6f29d6..7d56b9cc7 (100 commits)
https://skia.googlesource.com/skia.git/+log/b5b6f29d690f..7d56b9cc7ce9

Created with:
  roll-dep third_party/skia

Then update skia/BUILD.gn's Fontations build rules to match Chromium's,
which are set up to better deal with Skia-side changes.

Change-Id: Ia602c87c003d609e9a2b12d237f6e30193b5aa4c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/130590
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2025-04-08 09:50:59 -07:00
Lei Zhang
f9c12a8d77 Roll build, clang and rust
Roll build/ bcaac35c1..49491ecc7 (82 commits)

bcaac35c14..49491ecc7a

Created with:
  roll-dep build

Roll third_party/rust/ c98072466..d05fde505 (39 commits)

c980724668..d05fde5052

Created with:
  roll-dep third_party/rust

Roll tools/clang/ d05ab7b5b..374799d77 (9 commits)

d05ab7b5b9..374799d778

Roll clang llvmorg-21-init-5118-g52cd27e6-5 : llvmorg-21-init-6681-g5b36835d-1

Created with:
  roll-dep tools/clang

Roll tools/rust/ f26c92c0d..b549758ca (2 commits)

f26c92c0db..b549758ca9

Created with:
  roll-dep tools/rust

Then update skia/BUILD.gn to match the new Rust updates.

Change-Id: I8e27ee590e57268e9354dda10e0de3c1d0a5679f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/130570
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2025-04-08 09:50:53 -07:00
Lei Zhang
9cd9895daa Roll build, clang, rust
Roll build/ 3dd73ffc3..b802198dd (29 commits)

Created with:
  roll-dep build

3dd73ffc37..b802198dd5

Roll tools/clang/ 2ca96532f..786a0cdb0 (30 commits)

2ca96532f8..786a0cdb02

Roll clang+rust llvmorg-21-init-853-gba476d0b-1 : llvmorg-21-init-1655-g7b473dfe-1

Created with:
  roll-dep tools/clang

Roll third_party/rust/ 199a94c3f..7f2e44344 (19 commits)

199a94c3fa..7f2e443447

Created with:
  roll-dep third_party/rust

Roll tools/rust/ dd2753500..8b154f583 (3 commits)

dd27535007..8b154f5837

Created with:
  roll-dep tools/rust

Then update //skia/BUILD.gn to reference new Rust dependency versions.

Change-Id: I276ab4b8843f82c4f0eac22102907026a790b19a
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/129350
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2025-03-03 15:28:25 -08:00
Kaylee Lubick
5e50d5e2b1 Remove no-op Skia defines
These have all been deleted from the Skia codebase over the last
12 months or so.

Change-Id: Ib9c524ab0704ecb4ff9895b8d039fbbebb182976
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128990
Auto-Submit: Kaylee Lubick <kjlubick@google.com>
Commit-Queue: Kaylee Lubick <kjlubick@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2025-02-18 08:54:58 -08:00
Alan Screen
38cb4a42e5 Roll third_party/skia/ 975788ea9..6f17f2ebb (344 commits)
https://skia.googlesource.com/skia.git/+log/975788ea90f2..6f17f2ebb

Add skia_ports_typeface_proxy_sources to resolve component build issue
after the refactoring from http://review.skia.org/926596.

Created with:
  roll-dep third_party/skia

Change-Id: I210873fa3188c01fd636e625be07304e8f5dc727
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128790
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
2025-02-12 14:14:59 -08:00
Alan Screen
e829975821 Update skia/BUILD.gn to use gni filegroups for font port files
The explicit lists of port files declared here could become out of sync
with the files declared in the Skia repo.  This can be more easily
maintained by using the gni port variables declared by Skia.  This
ensures that any new or dropped files are automatically reflected here
in PDFium.  Switching to these already corrects some discrepencies, such
as the removal of SkFontMgr_android_factory.cpp and the addition of
several other header files.

Change-Id: Ic6ae03a58b8a458e68c54b9260be6316b06b112d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128830
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
2025-02-12 14:14:55 -08:00
Alan Screen
ae69e3abda Roll abseil, build, buildtools, clang, libc++, llvm-libc, rust together
Roll third_party/abseil-cpp/ f9b083a49..221ee3ed3 (6 commits)

f9b083a49c..221ee3ed3b

Created with:
  roll-dep third_party/abseil-cpp

Roll build/ 4aba7b76e..3dd73ffc3 (162 commits)

4aba7b76ec..3dd73ffc37

Created with:
  roll-dep build

Roll buildtools/ 469b4146c..91b044f3878e (16 commits)

469b4146c5..91b044f387

Created with:
  roll-dep buildtools

Roll tools/clang/ bf9a34113..2ca96532f (43 commits)

bf9a341137..2ca96532f8

Roll clang+rust llvmorg-20-init-16062-g091448e3-1 : llvmorg-21-init-853-gba476d0b-1

Created with:
  roll-dep tools/clang

Roll third_party/libc++/src/ 74dd76082..61c68567c (130 commits)

74dd760826..61c68567ca

Created with:
  roll-dep third_party/libc++/src

Roll third_party/llvm-libc/src/ 60b7db20a..533347237 (118 commits)

60b7db20ac..5333472378

Created with:
  roll-dep third_party/llvm-libc/src

Roll tools/rust/ 474e007a4..dd2753500 (2 commits)

474e007a4e..dd27535007

Created with:
  roll-dep tools/rust

Roll third_party/rust/ 08704ba66..199a94c3f (35 commits)

08704ba669..199a94c3fa

Created with:
  roll-dep third_party/rust

Update Rust version numbers in Skia BUILD.gn to match.

Change-Id: I3552044e482868c92fc94858d597a8acce1c5c2f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128711
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
2025-02-12 09:27:37 -08:00
Lei Zhang
f32695da8e Remove MSVC-specific code
Bug: 389951208
Change-Id: Idd870fa9621c4164764b10e0cd7ca678fc8bc4a7
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/127990
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@google.com>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2025-02-05 19:01:55 -08:00
Alan Screen
57b2e1c206 Roll llvm-libc, GCS, build, buildtools, clang, libcxx, rust, tools/rust
Add dependency llvm-libc

libc++ now depends on a small part of llvm-libc for floating point
from_chars.  https://crrev.com/1375402

Roll GCS deps

Utilize the generated output from GCS dep autoroller in
https://pdfium-review.googlesource.com/c/pdfium/+/126017

Roll build/ 9b11bd3a6..fcec87a31 (220 commits)

9b11bd3a6a..fcec87a316

Created with:
  roll-dep build

Roll buildtools/ 7f979120b..1760ff6d7 (25 commits; 1 trivial rolls)

7f979120bf..1760ff6d72

Created with:
  roll-dep buildtools

Roll tools/clang/ 7566fe852..37d1894d5 (38 commits)

7566fe8521..37d1894d53

Created with:
  roll-dep tools/clang

Roll third_party/libc++/src/ e2d898ca2..e9288ebce (75 commits)

e2d898ca22..e9288ebce4

Created with:
  roll-dep third_party/libc++/src

Roll third_party/rust/ 0e0ef1487..7c0544c9d (65 commits)

0e0ef14876..7c0544c9d6

Created with:
  roll-dep third_party/rust

Roll tools/rust/ a7d3d8af5..e4fd8fdee (15 commits)

a7d3d8af53..e4fd8fdeea

Created with:
  roll-dep tools/rust

Add UNSAFE_TODO() to cps_printer_driver.cpp to workaround build failure
after the toolchain updates.

Change-Id: Ife6a10c6dc84e4934a09a88d33c26a3bcd7ec1be
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/126130
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-11-19 17:54:43 +00:00
Kaylee Lubick
77b0e873a8 Use more precise SkSL filegroup
In http://review.skia.org/921634, Skia is removing a filegroup.
This update to PDFium will also make it so PDFium isn't building
the graphite SkSL modules (which are not used by PDFium).

Change-Id: Iabd65d7aeff8128d592066f87f24e2c4073151e6
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/126290
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: Kaylee Lubick <kjlubick@google.com>
2024-11-19 15:40:34 +00:00
Lei Zhang
75d98f483e Roll abseil, build, buildtools, clang, libc++ and rust
Also update Rust dependencies in skia/BUILD.gn to match.

Roll build/ 88f75356c..d26b9feb9 (99 commits)

88f75356c4..d26b9feb99

Created with:
  roll-dep build

Roll buildtools/ f8f6777fc..e796a7e40 (24 commits)

f8f6777fcf..e796a7e40d

Created with:
  roll-dep buildtools

Roll third_party/abseil-cpp/ 1b7ed5a19..ff8e7ea37 (8 commits)

1b7ed5a193..ff8e7ea37e

Created with:
  roll-dep third_party/abseil-cpp

Roll third_party/libc++/src/ d8d9de41d..1fe5dc4db (85 commits)

d8d9de41d7..1fe5dc4dbb

Created with:
  roll-dep third_party/libc++/src

Roll third_party/rust/ 3faea6d0c..1de58cd16 (29 commits)

3faea6d0cb..1de58cd165

Created with:
  roll-dep third_party/rust

Roll tools/clang/ fb801f8a4..4f1bc3a6b (23 commits)

fb801f8a4b..4f1bc3a6bc

Roll clang+rust llvmorg-20-init-1009-g7088a5ed-10 : llvmorg-20-init-3847-g69c43468-1

Created with:
  roll-dep tools/clang

Roll tools/rust/ b732825d2..a7d3d8af5 (5 commits)

b732825d28..a7d3d8af53

Created with:
  roll-dep tools/rust

Change-Id: I725322bdb17882432bde4046f12989aae629089c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/124470
Reviewed-by: Tom Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-09-17 21:15:15 +00:00
Alan Screen
042f8e23c8 Roll abseil-cpp, build, buildtools, clang, libc++, rust together
Roll third_party/abseil-cpp/ 2ab6754e3..1b7ed5a19 (19 commits)

2ab6754e38..1b7ed5a193

Created with:
  roll-dep third_party/abseil-cpp

Roll build/ a392134ba..88f75356c (269 commits)

a392134ba1..88f75356c4

Created with:
  roll-dep build

Roll buildtools/ 94d7b86a8..f8f6777fc (67 commits)

94d7b86a83..f8f6777fcf

Created with:
  roll-dep buildtools

Roll tools/clang/ 7e2aebd75..fb801f8a4 (70 commits)

7e2aebd75d..fb801f8a4b

Roll clang+rust llvmorg-19-init-14561-gecea8371-1 : llvmorg-20-init-1009-g7088a5ed-10

Created with:
  roll-dep tools/clang

Roll third_party/libc++/src/ 09b99fd8a..d8d9de41d (249 commits)

09b99fd8ab..d8d9de41d7

Created with:
  roll-dep third_party/libc++/src

Roll third_party/rust/ 73996f7ff..3faea6d0c (56 commits)

73996f7ff6..3faea6d0cb

Created with:
  roll-dep third_party/rust

Roll testing/scripts/rust/ 1938e1e7b..9950a459b (6 commits)

1938e1e7b5..9950a459b1

Created with:
  roll-dep testing/scripts/rust

Roll tools/rust/ 402380629..b732825d2 (6 commits)

402380629f..b732825d28

Created with:
  roll-dep tools/rust

Change-Id: I48a1b8ce95e35f7d028738f0aea93a7dddf97bbb
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/122831
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
2024-08-28 21:32:56 +00:00
Alan Screen
d6ab99555e Roll third_party/skia/ 5491fe7b9..505fb55cd (114 commits)
https://skia.googlesource.com/skia.git/+log/5491fe7b9035..505fb55cd044

Updated Skia build targets to account for change in
http://review.skia.org/891146.

Created with:
  roll-dep third_party/skia

Change-Id: I665c63bc3f5c83a4e2ad1763a17db795ed302e0a
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/123870
Commit-Queue: Alan Screen <awscreen@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2024-08-28 19:09:50 +00:00
Kaylee Lubick
75efe99a5a Remove reference to Ganesh GL config
This is going away in https://skia-review.googlesource.com/892078
and PDFium does not use Skia's Ganesh backend so this is a no-op.

Bug: b:293490566
Change-Id: If75beed66b12b1808a1129fbf0344e1182bf1891
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/123710
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Kaylee Lubick <kjlubick@google.com>
Auto-Submit: Kaylee Lubick <kjlubick@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2024-08-23 18:01:33 +00:00
Alan Screen
b79a0c6d5a Roll third_party/skia/ 173ee0af8..37427562a (115 commits)
https://skia.googlesource.com/skia.git/+log/173ee0af82c9..37427562a35b

Adjust Skia build sources to account for change in
https://skia-review.googlesource.com/c/skia/+/871744.

Created with:
  roll-dep third_party/skia

Change-Id: Id068e08206ca3c5b5efda05b085e60e901420b1a
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/123670
Commit-Queue: Alan Screen <awscreen@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2024-08-20 23:19:09 +00:00
Lei Zhang
5b453aa55b Import Fontations build rules
Import the Fontations build rules from Chromium's //skia/BUILD.gn into
PDFium's. The build rules are gated behind the `pdf_enable_fontations`
GN arg, similar to how Fontations was first introduced into Chromium.

Bug: 42271123
Change-Id: Ifd632dd928ace32883c27f17d2826e1007dfd3ec
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/121353
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-07-02 15:15:46 +00:00
Lei Zhang
063859bd15 Build Fontations dependencies
Take a step towards building Fontations by building some of its Rust
dependencies.

- Check out third_party/rust to make those dependencies available.
- Rename some rust variables in DEPS to make them clearer.

Bug: 42271123
Change-Id: Ia34dc4a720a04bd12abd6e0f9c523d8ebf909c7b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/121250
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
2024-06-28 16:54:58 +00:00
Alan Screen
fa8edc249f Roll third_party/skia/ 7338f5521..04ee4daae (438 commits)
https://skia.googlesource.com/skia.git/+log/7338f5521e05..04ee4daaea19

Remove source files SkFontMgr_indirect.cpp, SkRemotableFontMgr.cpp, and
SkRemotableFontMgr_win_dw.cpp from build sources, as they were removed
from Skia in https://skia-review.googlesource.com/c/skia/+/841658.

Created with:
  roll-dep third_party/skia

Change-Id: Ie23f84d58347873cc2d1ee6d8be0d138d39e17e8
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/118750
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-05-01 18:15:39 +00:00
Ben Wagner
c0800e8bd2 Remove Skia Sfntly dependency
Skia no longer supports use of Sfntly as a font subsetter, remove this
unused mention to clarify this.

Change-Id: I08ce184bf3a75de45f4fcc1917719964669514ce
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/117690
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2024-03-19 20:42:40 +00:00
Alan Screen
82e2c19b8f Roll third_party/skia/ 9832c7722..49f18efdf (331 commits)
https://skia.googlesource.com/skia.git/+log/9832c7722061..49f18efdfa73

Include extra SkEncodedInfo.cpp and SkPngCodec.cpp in Windows Skia port
sources to overcome a build failure for the component build.  This is
necessary due to the change in http://review.skia.org/808496, as these
files are not automatically included by the skia_codec_core build
source set.

Created with:
  roll-dep third_party/skia

Change-Id: Ic323f75c302ff77b94aaa9f0f6046fef9ff6b462
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/116970
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
2024-02-26 22:40:13 +00:00
Lei Zhang
9108588e63 Move remaining code out of third_party/base and into core/fxcrt
Bug: pdfium:2127
Change-Id: I6958fd117a550a8c46a43265ee46370bd1615f38
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/116851
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-02-22 00:49:57 +00:00
Lei Zhang
67963ba70d Remove Fuchsia support
No longer needed.

Bug: pdfium:1775,pdfium:2019
Change-Id: I942944e54b115eda67158a772bc1dfb8632c9edb
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/116630
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
2024-02-16 16:49:28 +00:00
Alan Screen
ca0dc045d4 Roll third_party/skia/ a9db1213b..6279c88b9 (349 commits)
https://skia.googlesource.com/skia.git/+log/a9db1213b179..6279c88b9e29

Remove build references to SkFontMgr_custom_empty_factory.cpp,
SkFontMgr_mac_ct_factory.cpp, and SkFontMgr_win_dw_factory.cpp, which
were removed from Skia repo in http://review.skia.org/801656.

Created with:
  roll-dep third_party/skia

Change-Id: If7b6d6ee5a1e83ee63d45061332c8565879061df
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/116553
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Alan Screen <awscreen@chromium.org>
2024-02-14 18:56:30 +00:00
John Stiles
ad80a04d38 Split out skcms_sources into multiple GN targets.
This CL synchronizes PDFium's Skia build files with Chromium's.
See https://crrev.com/c/5038351

Bug: b/310927123
Change-Id: I00b0df7ff189a3863f2ae8bbbc68b98dea78f2f5
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/113670
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2023-11-17 18:36:28 +00:00
Lei Zhang
4b58f5d429 Sync SkPdfiumUserConfig.h with the Chromium equivalent
Remove many #defines that are no longer set in Chromium's
//skia/config/SkUserConfig.h. Most of these have no effect on Skia.

Change-Id: I2ee4d0a4d30a89ba159f243e0f2a319e713496c6
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/112933
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nigi <nigi@chromium.org>
2023-10-23 20:34:44 +00:00
Lei Zhang
55fa8edac5 Sync Skia build config with Chromium's for Windows builds
Except PDFium needs to add SkFontMgr_win_dw_factory.cpp to the build,
whereas Chromium separately implements a factory that does mostly the
same thing.

Bug: pdfium:1830
Change-Id: Id89997ea62621af4c08dd305563a69b61aa04f34
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/112891
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nigi <nigi@chromium.org>
2023-10-21 01:08:34 +00:00
Lei Zhang
28a72eec42 Sync Skia build config with Chromium's for Mac builds
Enable rendering with CoreText on Mac, to match Skia in Chromium.
Update tests with new expectations and suppress some failures revealed
by the config change.

Bug: pdfium:1830,pdfium:2086
Change-Id: I95fb02518958619be62f77675f8c4d7c0a186c91
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/112831
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nigi <nigi@chromium.org>
2023-10-20 21:24:51 +00:00
Lei Zhang
e3109704c5 Skia: Add some FreeType defines
Make //skia/BUILD.gn consistent with Chromium's //skia/BUILD.gn.

Change-Id: If64c030172a62263f9d43fb283b69f853f757238
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/112890
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nigi <nigi@chromium.org>
2023-10-19 22:05:37 +00:00
Lei Zhang
8d7ab32f5e Skia: Disable legacy APIs
Make //skia/BUILD.gn consistent with Chromium's //skia/BUILD.gn. Disable
various legacy Skia APIs to ensure PDFium does not accidentally use
them.

Change-Id: I95f6983859a9260aa8dffd0824e69dcd2b78c503
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/112870
Reviewed-by: Nigi <nigi@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2023-10-19 20:23:48 +00:00