Commit 468165b3 authored by kylechar's avatar kylechar Committed by Commit Bot

Fix SkR+Dawn NOTIMPLEMENTED

Fix NOTIMPLEMENTED() that gets hit with SkiaRenderer+Dawn for max
texture size. There is no API to query max texture size but WebGPU needs
to support 8k textures so that is a safe placeholder for now.

Bug: 1090476
Change-Id: Ia25ab3441b717410f09e21bb3785413c8a3c097a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225624
Auto-Submit: kylechar <kylechar@chromium.org>
Commit-Queue: Khushal <khushalsagar@chromium.org>
Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774362}
parent 47dec323
...@@ -948,6 +948,10 @@ Capabilities RasterDecoderImpl::GetCapabilities() { ...@@ -948,6 +948,10 @@ Capabilities RasterDecoderImpl::GetCapabilities() {
#else #else
NOTREACHED(); NOTREACHED();
#endif #endif
} else if (shared_context_state_->GrContextIsDawn()) {
// TODO(crbug.com/1090476): Query Dawn for this value once an API exists for
// capabilities.
caps.max_texture_size = 8192;
} else { } else {
NOTIMPLEMENTED(); NOTIMPLEMENTED();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment