Commit 81c87131 authored by Geoff Lang's avatar Geoff Lang Committed by Commit Bot

Check for passthrough cmd decoder support in DirectContextProvider.

If the passthrough command decoder is default, it may get used when it is not
supported in compositor_unittests  and cc_unittests.

BUG=882580

Change-Id: I890315332e07bb61328fc9cb063f4abbdafa0194
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739308Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684347}
parent 54996530
......@@ -22,6 +22,7 @@
#include "gpu/command_buffer/service/command_buffer_direct.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/memory_tracking.h"
#include "gpu/command_buffer/service/service_utils.h"
#include "gpu/config/gpu_feature_info.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface.h"
......@@ -43,9 +44,10 @@ DirectContextProvider::DirectContextProvider(
auto limits = gpu::SharedMemoryLimits::ForMailboxContext();
auto group = base::MakeRefCounted<gpu::gles2::ContextGroup>(
gpu_preferences, true, &mailbox_manager_, /*memory_tracker=*/nullptr,
&translator_cache_, &completeness_cache_, feature_info, true,
&image_manager_, /*image_factory=*/nullptr,
gpu_preferences, gpu::gles2::PassthroughCommandDecoderSupported(),
&mailbox_manager_, /*memory_tracker=*/nullptr, &translator_cache_,
&completeness_cache_, feature_info, true, &image_manager_,
/*image_factory=*/nullptr,
/*progress_reporter=*/nullptr, gpu_feature_info_, &discardable_manager_,
&passthrough_discardable_manager_, delegate_->GetSharedImageManager());
......
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