Commit c78d77b3 authored by Vasiliy Telezhnikov's avatar Vasiliy Telezhnikov Committed by Commit Bot

aw: Disable texure size limit for main GrContext

When using SkiaRenderer with WebView Skia does validation of frame
buffer size. max_texture_size_limit_4096 workaround limits the size
to 4096.

This CL disables workaround for compositing GrContext as frame buffer
comes from Android in that case and we don't control its size.

Bug: 1055904
Change-Id: Id7826683495caf1b26dcc8303eceb2ed7a8ff003
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2072921Reviewed-by: default avatarBo <boliu@chromium.org>
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744666}
parent 1a4d28e0
......@@ -94,9 +94,19 @@ void OutputSurfaceProviderWebview::InitializeContext() {
GpuServiceWebView::GetInstance()->gpu_preferences(),
std::move(feature_info));
}
// As most of the GPU resources used for compositing are created on Chrome
// side this affects only validation inside Skia. The workaround effectively
// clamps max frame buffer size that comes from Android. As we don't control
// frame buffer size using this workaround leads to not drawing anything on
// screen.
// TODO(vasilyt): Remove this once it handles on Skia side.
gpu::GpuDriverBugWorkarounds workarounds_for_skia = workarounds;
workarounds_for_skia.max_texture_size_limit_4096 = false;
shared_context_state_->InitializeGrContext(
GpuServiceWebView::GetInstance()->gpu_preferences(), workarounds,
nullptr /* gr_shader_cache */);
GpuServiceWebView::GetInstance()->gpu_preferences(),
workarounds_for_skia, nullptr /* gr_shader_cache */);
}
}
......
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