Commit 82b5a4f2 authored by Geoff Lang's avatar Geoff Lang Committed by Commit Bot

Don't use the BufferManager if it doesn't exist in the GPU fuzzer.

TBR=zmo@chromium.org

BUG=1056984
BUG=1030835

Change-Id: I491b8c1d38f9637d37a92cb6d4b84e7ff2a5d7e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079463Reviewed-by: default avatarGeoff Lang <geofflang@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745501}
parent 4dfdfa73
...@@ -456,7 +456,9 @@ class CommandBufferSetup { ...@@ -456,7 +456,9 @@ class CommandBufferSetup {
decoder_->set_max_bucket_size(8 << 20); decoder_->set_max_bucket_size(8 << 20);
#if !defined(GPU_FUZZER_USE_RASTER_DECODER) #if !defined(GPU_FUZZER_USE_RASTER_DECODER)
context_group->buffer_manager()->set_max_buffer_size(8 << 20); if (context_group->buffer_manager()) {
context_group->buffer_manager()->set_max_buffer_size(8 << 20);
}
#endif #endif
return decoder_->MakeCurrent(); return decoder_->MakeCurrent();
} }
......
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