[rust png] Use `SkPngRustEncoder` (if enabled) when encoding `SkImage`s. [chromium/src : main]

0 views
Skip to first unread message

Łukasz Anforowicz (Gerrit)

unread,
Dec 13, 2024, 3:02:23 PM12/13/24
to Florin Malita, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Florin Malita

Łukasz Anforowicz added 3 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Łukasz Anforowicz . resolved

@fmalita, can you PTAL?

/cc @danieldilan as FYI

File skia/ext/codec_utils.h
Line 22, Patchset 5 (Latest):SK_API sk_sp<SkData> EncodePngAsSkData(GrDirectContext* context,
const SkImage& src,
int zlibCompressionLevel);
Łukasz Anforowicz . unresolved

The overload that accepts `zlibCompressionLevel` has only 1 caller, so I though that it is useful to have it as a separate overload (e.g. to easily see in code search Xrefs that there is indeed only 1 caller).

File third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc
Line 257, Patchset 5 (Latest): nullptr, *params->image, kZLibCompressionLevel);
Łukasz Anforowicz . unresolved

This is the only caller of (`skia/ext/codec_utils.h`) that requires support for custom `SkPngEncoder::Options`. (FWIW `//ui/gfx/codec/png_codec.cc` doesn't go through `skia/ext/codec_utils.h` but also supports options for custom compression levels or for adding comments.)

I note that `SkPngRustEncoder::CompressionLevel::kLow` is not quite the same as `fZlibLevel = 0` in `SkPngEncoder::Options`. But I think this should be fine (at least IMHO it shouldn't block this CL nor the Rust PNG trials). I'll loop the code owner just in case.

I remember that I promised to compression level of Rust `png` vs `libpng` on a randomly chose image - it's still on my TODO list. https://crates.io/crates/png advertises that it "includes a fast encoding mode powered by fdeflate that is dramatically faster than the fastest mode of libpng while simultaneously providing better compression ratio".

Open in Gerrit

Related details

Attention is currently required from:
  • Florin Malita
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 5
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Florin Malita <fma...@chromium.org>
Gerrit-Comment-Date: Fri, 13 Dec 2024 20:02:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 13, 2024, 3:12:58 PM12/13/24
to Benoit Lize, Florin Malita, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Florin Malita

Łukasz Anforowicz added 2 comments

Patchset-level comments
Łukasz Anforowicz . resolved

/cc @lizeb - see below

File third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc
Line 257, Patchset 5 (Latest): nullptr, *params->image, kZLibCompressionLevel);
Łukasz Anforowicz . unresolved

This is the only caller of (`skia/ext/codec_utils.h`) that requires support for custom `SkPngEncoder::Options`. (FWIW `//ui/gfx/codec/png_codec.cc` doesn't go through `skia/ext/codec_utils.h` but also supports options for custom compression levels or for adding comments.)

I note that `SkPngRustEncoder::CompressionLevel::kLow` is not quite the same as `fZlibLevel = 0` in `SkPngEncoder::Options`. But I think this should be fine (at least IMHO it shouldn't block this CL nor the Rust PNG trials). I'll loop the code owner just in case.

I remember that I promised to compression level of Rust `png` vs `libpng` on a randomly chose image - it's still on my TODO list. https://crates.io/crates/png advertises that it "includes a fast encoding mode powered by fdeflate that is dramatically faster than the fastest mode of libpng while simultaneously providing better compression ratio".

Łukasz Anforowicz

/cc @lizeb who authored this `case` in https://crrev.com/c/5645862 in July 2024.

I think the only next steps would be to watch the histograms from the CanvasHibernationSnapshotZstd.gcl study - I'll add the to the design doc at go/rusty-png-in-chromium-and-skia (done) and to the `RustyPng.gcl` study (see cl/705961197):

  • 'Blink.Canvas.2DLayerBridge.Compression.DecompressionTime',
  • 'Blink.Canvas.2DLayerBridge.Compression.Ratio',
  • 'Blink.Canvas.2DLayerBridge.Compression.ThreadTime',

(I see that the histograms won't expire until May 2025.)

Please let me know if you have any feedback.

Open in Gerrit

Related details

Attention is currently required from:
  • Florin Malita
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 5
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Florin Malita <fma...@chromium.org>
Gerrit-Comment-Date: Fri, 13 Dec 2024 20:12:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Łukasz Anforowicz <luk...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Florin Malita (Gerrit)

unread,
Dec 13, 2024, 3:44:40 PM12/13/24
to Łukasz Anforowicz, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Łukasz Anforowicz

Florin Malita added 3 comments

File skia/ext/codec_utils.h
Line 22, Patchset 5 (Latest):SK_API sk_sp<SkData> EncodePngAsSkData(GrDirectContext* context,
const SkImage& src,
int zlibCompressionLevel);
Łukasz Anforowicz . resolved

The overload that accepts `zlibCompressionLevel` has only 1 caller, so I though that it is useful to have it as a separate overload (e.g. to easily see in code search Xrefs that there is indeed only 1 caller).

Florin Malita

Acknowledged

File skia/ext/codec_utils.cc
Line 38, Patchset 5 (Latest): const SkImage& src,
Florin Malita . unresolved

Would it make more sense to take a `const SkImage*` instead, and add a null check here? I think that would eliminate some of the defensive checks in client code, and is also more aligned with `SkPngCoder::Encode`.

Line 51, Patchset 5 (Latest): SkPngEncoder::Options options = {};
options.fZLibLevel = zlibCompressionLevel;
Florin Malita . unresolved

nit: can we use c++20 designated initializers yet? I'm dying to write something like this :")

`const SkPngEncoder::Options options = { .fZlibLevel = zlibCompressionLevel };`

Open in Gerrit

Related details

Attention is currently required from:
  • Łukasz Anforowicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 5
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Comment-Date: Fri, 13 Dec 2024 20:44:29 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 13, 2024, 5:34:44 PM12/13/24
to Benoit Lize, Florin Malita, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Florin Malita

Łukasz Anforowicz added 4 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Łukasz Anforowicz . resolved

@fmalita, can you PTAL again?

File skia/ext/codec_utils.cc
Line 38, Patchset 5: const SkImage& src,
Florin Malita . resolved

Would it make more sense to take a `const SkImage*` instead, and add a null check here? I think that would eliminate some of the defensive checks in client code, and is also more aligned with `SkPngCoder::Encode`.

Łukasz Anforowicz

Done

Line 51, Patchset 5: SkPngEncoder::Options options = {};
options.fZLibLevel = zlibCompressionLevel;
Florin Malita . resolved

nit: can we use c++20 designated initializers yet? I'm dying to write something like this :")

`const SkPngEncoder::Options options = { .fZlibLevel = zlibCompressionLevel };`

Łukasz Anforowicz

Done.

FWIW https://en.cppreference.com/w/cpp/language/aggregate_initialization#Implicitly_initialized_elements says that

1. If the element has a default member initializer, the element is initialized from that initializer.
(since C++11)
2. Otherwise, if the element is not a reference, the element is copy-initialized from an empty initializer list.

Item 1 applies to `fFilterFlags` and `fICCProfile` and `fICCProfileDescription`. I _think_ that item 2 applies to `fComments` (i.e. that it will invoke the default constructor of `sk_sp<...>` and the copy that into `fComments`).

File third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc
Line 257, Patchset 5: nullptr, *params->image, kZLibCompressionLevel);
Łukasz Anforowicz . unresolved

This is the only caller of (`skia/ext/codec_utils.h`) that requires support for custom `SkPngEncoder::Options`. (FWIW `//ui/gfx/codec/png_codec.cc` doesn't go through `skia/ext/codec_utils.h` but also supports options for custom compression levels or for adding comments.)

I note that `SkPngRustEncoder::CompressionLevel::kLow` is not quite the same as `fZlibLevel = 0` in `SkPngEncoder::Options`. But I think this should be fine (at least IMHO it shouldn't block this CL nor the Rust PNG trials). I'll loop the code owner just in case.

I remember that I promised to compression level of Rust `png` vs `libpng` on a randomly chose image - it's still on my TODO list. https://crates.io/crates/png advertises that it "includes a fast encoding mode powered by fdeflate that is dramatically faster than the fastest mode of libpng while simultaneously providing better compression ratio".

Łukasz Anforowicz

/cc @lizeb who authored this `case` in https://crrev.com/c/5645862 in July 2024.

I think the only next steps would be to watch the histograms from the CanvasHibernationSnapshotZstd.gcl study - I'll add the to the design doc at go/rusty-png-in-chromium-and-skia (done) and to the `RustyPng.gcl` study (see cl/705961197):

  • 'Blink.Canvas.2DLayerBridge.Compression.DecompressionTime',
  • 'Blink.Canvas.2DLayerBridge.Compression.Ratio',
  • 'Blink.Canvas.2DLayerBridge.Compression.ThreadTime',

(I see that the histograms won't expire until May 2025.)

Please let me know if you have any feedback.

Łukasz Anforowicz

@lizeb, maybe one other thing to consider would be to keep [the `kCanvasHibernationSnapshotZstd` feature](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc;l=47-52;drc=2d2d0f30da5d041405838dbad97f02c146724b2c) and then (once Rusty PNG reaches Stable) we could do a 2x2 comparison:

```
| regular encode | zstd
----------+----------------+------
libpng | |
Rusty PNG | |
```

WDYT?

Open in Gerrit

Related details

Attention is currently required from:
  • Florin Malita
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 7
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Florin Malita <fma...@chromium.org>
Gerrit-Comment-Date: Fri, 13 Dec 2024 22:34:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Florin Malita <fma...@chromium.org>
Comment-In-Reply-To: Łukasz Anforowicz <luk...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Florin Malita (Gerrit)

unread,
Dec 17, 2024, 2:03:33 PM12/17/24
to Łukasz Anforowicz, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Łukasz Anforowicz

Florin Malita voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Łukasz Anforowicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 7
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 19:03:19 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 17, 2024, 2:05:21 PM12/17/24
to Xiyuan Xia, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Xiyuan Xia

Łukasz Anforowicz added 1 comment

Patchset-level comments
Łukasz Anforowicz . resolved

+@xiyuan from chrome/browser/ash/app_list/OWNERS - can you PTAL at the changes in this directory?

Open in Gerrit

Related details

Attention is currently required from:
  • Xiyuan Xia
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 7
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 19:05:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 17, 2024, 2:06:03 PM12/17/24
to Fred Mello, Xiyuan Xia, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello and Xiyuan Xia

Łukasz Anforowicz added 1 comment

Patchset-level comments
Łukasz Anforowicz . resolved

+@fredmello from components/paint_preview/OWNERS - can you PTAL at the changes in this directory?

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Xiyuan Xia
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 7
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Fred Mello <fred...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 19:05:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 17, 2024, 2:07:48 PM12/17/24
to Rebekah Potter, Fred Mello, Xiyuan Xia, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello, Rebekah Potter and Xiyuan Xia

Łukasz Anforowicz added 1 comment

Patchset-level comments
Łukasz Anforowicz . resolved

+@rbpotter from //printing/OWNERS - can you PTAL at the changes in this directory?

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Rebekah Potter
  • Xiyuan Xia
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 7
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Fred Mello <fred...@chromium.org>
Gerrit-Reviewer: Rebekah Potter <rbpo...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Attention: Rebekah Potter <rbpo...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 19:07:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 17, 2024, 2:10:35 PM12/17/24
to Daniel Cheng, Rebekah Potter, Fred Mello, Xiyuan Xia, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Daniel Cheng, Fred Mello, Rebekah Potter and Xiyuan Xia

Łukasz Anforowicz added 1 comment

Patchset-level comments
Łukasz Anforowicz . resolved

+@dcheng from content/renderer/OWNERS - can you PTAL at the changes in this directory? (I asked a random number generator for a number from 1 to 3, and it said that I should send the CL to the 1st person from the OWNERS file :-)

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
  • Fred Mello
  • Rebekah Potter
  • Xiyuan Xia
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 7
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Fred Mello <fred...@chromium.org>
Gerrit-Reviewer: Rebekah Potter <rbpo...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Attention: Rebekah Potter <rbpo...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 19:10:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Cheng (Gerrit)

unread,
Dec 17, 2024, 2:38:52 PM12/17/24
to Łukasz Anforowicz, Daniel Cheng, Rebekah Potter, Fred Mello, Xiyuan Xia, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello, Rebekah Potter, Xiyuan Xia and Łukasz Anforowicz

Daniel Cheng voted and added 1 comment

Votes added by Daniel Cheng

Code-Review+1

1 comment

Patchset-level comments
Daniel Cheng . resolved

LGTM for //content/renderer

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Rebekah Potter
  • Xiyuan Xia
  • Łukasz Anforowicz
Gerrit-Attention: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Attention: Rebekah Potter <rbpo...@chromium.org>
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 19:38:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Xiyuan Xia (Gerrit)

unread,
Dec 17, 2024, 3:10:39 PM12/17/24
to Łukasz Anforowicz, Daniel Cheng, Rebekah Potter, Fred Mello, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello, Rebekah Potter and Łukasz Anforowicz

Xiyuan Xia voted and added 2 comments

Votes added by Xiyuan Xia

Code-Review+1

2 comments

Patchset-level comments
Xiyuan Xia . resolved

lgtm

File skia/ext/codec_utils.h
Line 24, Patchset 7 (Latest): int zlibCompressionLevel);
Xiyuan Xia . unresolved

nit: `zlibCompressionLevel` -> `zlib_compression_level` ?

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Rebekah Potter
  • Łukasz Anforowicz
Gerrit-Attention: Rebekah Potter <rbpo...@chromium.org>
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 20:10:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 17, 2024, 3:21:46 PM12/17/24
to Xiyuan Xia, Daniel Cheng, Rebekah Potter, Fred Mello, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello and Rebekah Potter

Łukasz Anforowicz added 1 comment

File skia/ext/codec_utils.h
Line 24, Patchset 7: int zlibCompressionLevel);
Xiyuan Xia . resolved

nit: `zlibCompressionLevel` -> `zlib_compression_level` ?

Łukasz Anforowicz

Ooops. Done. My brain has significant inertia when switching between Skia and Chromium style guides :-P.

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Rebekah Potter
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 20:21:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Xiyuan Xia <xiy...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Rebekah Potter (Gerrit)

unread,
Dec 17, 2024, 6:03:18 PM12/17/24
to Łukasz Anforowicz, Lei Zhang, Xiyuan Xia, Daniel Cheng, Fred Mello, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello, Lei Zhang and Łukasz Anforowicz

Rebekah Potter added 1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Rebekah Potter . resolved

Redirecting to thestig@ for printing backend changes.

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Lei Zhang
  • Łukasz Anforowicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 8
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Fred Mello <fred...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Dec 2024 23:03:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 17, 2024, 7:19:54 PM12/17/24
to Alan Screen, Lei Zhang, Xiyuan Xia, Daniel Cheng, Fred Mello, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Alan Screen, Fred Mello and Lei Zhang

Łukasz Anforowicz added 2 comments

Patchset-level comments
Rebekah Potter . resolved

Redirecting to thestig@ for printing backend changes.

Łukasz Anforowicz

Redirecting to thestig@ for printing backend changes.

IIUC thestig@ won't be able to take a look until Dec 19th... Let me try @awscreen in the meantime. FWIW this is a more-or-less mechanical change, so it should be fairly straightforward to review.

Łukasz Anforowicz . resolved

@awscreen, can you PTAL at the //printing/common/metafile_utils.cc changes?

Open in Gerrit

Related details

Attention is currently required from:
  • Alan Screen
  • Fred Mello
  • Lei Zhang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 8
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Alan Screen <awsc...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Fred Mello <fred...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Alan Screen <awsc...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Dec 2024 00:19:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Rebekah Potter <rbpo...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alan Screen (Gerrit)

unread,
Dec 17, 2024, 7:41:23 PM12/17/24
to Łukasz Anforowicz, Alan Screen, Lei Zhang, Xiyuan Xia, Daniel Cheng, Fred Mello, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello, Lei Zhang and Łukasz Anforowicz

Alan Screen voted and added 1 comment

Votes added by Alan Screen

Code-Review+1

1 comment

Patchset-level comments
Alan Screen . resolved

printing LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Lei Zhang
  • Łukasz Anforowicz
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Dec 2024 00:41:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Calder Kitagawa (Gerrit)

unread,
Dec 18, 2024, 7:31:18 AM12/18/24
to Łukasz Anforowicz, Fred Mello, Lei Zhang, Alan Screen, Xiyuan Xia, Daniel Cheng, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org
Attention needed from Fred Mello and Łukasz Anforowicz

Calder Kitagawa voted and added 1 comment

Votes added by Calder Kitagawa

Code-Review+1

1 comment

Patchset-level comments
Calder Kitagawa . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Fred Mello
  • Łukasz Anforowicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 8
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Alan Screen <awsc...@chromium.org>
Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Fred Mello <fred...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Attention: Fred Mello <fred...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Dec 2024 12:31:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Łukasz Anforowicz (Gerrit)

unread,
Dec 18, 2024, 10:29:05 AM12/18/24
to Calder Kitagawa, Fred Mello, Lei Zhang, Alan Screen, Xiyuan Xia, Daniel Cheng, Florin Malita, Benoit Lize, Daniel Dilan, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org

Łukasz Anforowicz voted and added 2 comments

Votes added by Łukasz Anforowicz

Commit-Queue+2

2 comments

Patchset-level comments
Łukasz Anforowicz . resolved

Thanks for the reviews everyone! @lizeb - I'll resolve the comment thread below and push the CL to CQ. I'll follow-up separately over email.

File third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc
Line 257, Patchset 5: nullptr, *params->image, kZLibCompressionLevel);
Łukasz Anforowicz . resolved

This is the only caller of (`skia/ext/codec_utils.h`) that requires support for custom `SkPngEncoder::Options`. (FWIW `//ui/gfx/codec/png_codec.cc` doesn't go through `skia/ext/codec_utils.h` but also supports options for custom compression levels or for adding comments.)

I note that `SkPngRustEncoder::CompressionLevel::kLow` is not quite the same as `fZlibLevel = 0` in `SkPngEncoder::Options`. But I think this should be fine (at least IMHO it shouldn't block this CL nor the Rust PNG trials). I'll loop the code owner just in case.

I remember that I promised to compression level of Rust `png` vs `libpng` on a randomly chose image - it's still on my TODO list. https://crates.io/crates/png advertises that it "includes a fast encoding mode powered by fdeflate that is dramatically faster than the fastest mode of libpng while simultaneously providing better compression ratio".

Łukasz Anforowicz

/cc @lizeb who authored this `case` in https://crrev.com/c/5645862 in July 2024.

I think the only next steps would be to watch the histograms from the CanvasHibernationSnapshotZstd.gcl study - I'll add the to the design doc at go/rusty-png-in-chromium-and-skia (done) and to the `RustyPng.gcl` study (see cl/705961197):

  • 'Blink.Canvas.2DLayerBridge.Compression.DecompressionTime',
  • 'Blink.Canvas.2DLayerBridge.Compression.Ratio',
  • 'Blink.Canvas.2DLayerBridge.Compression.ThreadTime',

(I see that the histograms won't expire until May 2025.)

Please let me know if you have any feedback.

Łukasz Anforowicz

@lizeb, maybe one other thing to consider would be to keep [the `kCanvasHibernationSnapshotZstd` feature](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc;l=47-52;drc=2d2d0f30da5d041405838dbad97f02c146724b2c) and then (once Rusty PNG reaches Stable) we could do a 2x2 comparison:

```
| regular encode | zstd
----------+----------------+------
libpng | |
Rusty PNG | |
```

WDYT?

Łukasz Anforowicz

Resolving...

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 8
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Alan Screen <awsc...@chromium.org>
Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
Gerrit-CC: Daniel Dilan <danie...@google.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Fred Mello <fred...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Dec 2024 15:28:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Łukasz Anforowicz <luk...@chromium.org>
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Dec 18, 2024, 11:15:41 AM12/18/24
to Łukasz Anforowicz, Calder Kitagawa, Fred Mello, Lei Zhang, Alan Screen, Xiyuan Xia, Daniel Cheng, Florin Malita, Benoit Lize, Daniel Dilan, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, cc-...@chromium.org, chromium-a...@chromium.org, cros-print...@google.com, drott+bl...@chromium.org, extension...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, kinuko...@chromium.org, print-rev...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[rust png] Use `SkPngRustEncoder` (if enabled) when encoding `SkImage`s.

This CL reroutes direct calls to `SkPngEncoder::Encode(...image...)` to
instead go through helper functions that offer the same functionality,
but select `SkPngEncoder` vs `SkPngRustEncoder` at runtime, based on the
`skia::kRustyPngFeature`.
Bug: chromium:379312510
Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Reviewed-by: Daniel Cheng <dch...@chromium.org>
Reviewed-by: Xiyuan Xia <xiy...@chromium.org>
Reviewed-by: Florin Malita <fma...@chromium.org>
Reviewed-by: Calder Kitagawa <ckit...@chromium.org>
Commit-Queue: Łukasz Anforowicz <luk...@chromium.org>
Reviewed-by: Alan Screen <awsc...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1397967}
Files:
  • M cc/debug/picture_debug_util.cc
  • M chrome/browser/ash/app_list/app_list_sort_browsertest.cc
  • M components/paint_preview/common/serial_utils.cc
  • M components/paint_preview/renderer/paint_preview_recorder_utils_unittest.cc
  • M content/renderer/gpu_benchmarking_extension.cc
  • M printing/common/metafile_utils.cc
  • M skia/ext/codec_utils.cc
  • M skia/ext/codec_utils.h
  • M skia/ext/codec_utils_unittest.cc
  • M third_party/blink/renderer/platform/graphics/canvas_hibernation_handler.cc
Change size: M
Delta: 10 files changed, 99 insertions(+), 23 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Xiyuan Xia, +1 by Florin Malita, +1 by Calder Kitagawa, +1 by Daniel Cheng, +1 by Alan Screen
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If88ca775cc79851645f5b9eaba938a6fe847d4c9
Gerrit-Change-Number: 6092347
Gerrit-PatchSet: 9
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Alan Screen <awsc...@chromium.org>
Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Xiyuan Xia <xiy...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-CC: Benoit Lize <li...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages