[rust png] Minimal `onGetFrameInfo` to support non-animated images.

This CL adds a miminal `SkPngRustCodec::onGetFrameInfo` - one that only
supports the first frame (i.e. only supports non-animated images).  This
is required (although not sufficient) to unblock Blink integration of
`SkPngRustCodec` - this integration will reuse code from
`blink::GIFImageDecoder` which depends on `onGetFrameInfo` calls).

After this CL, the following Blink tests pass (after patching in the
Blink integration from https://crrev.com/c/5786777 and upstream CLs):

* `RustEnabled/PNGTests.sizeMayOverflow/0`
* `RustEnabled/PNGTests.truncated/0`
* `RustEnabled/PNGTests.crbug827754/0`
* `RustEnabled/PNGTests.CriticalPrivateChunkBeforeIHDR/0`

Bug: chromium:356884491
Change-Id: I9cc80a657aea624d37c327ba7bffbad2694e6f61
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/888898
Commit-Queue: Ɓukasz Anforowicz <lukasza@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2 files changed