| Index: content/common/gpu/gpu_channel.cc
|
| diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
|
| index 20edeafa8467e1ad4f42da2350c052003e8be2a6..aa62b7e823bf7d81473382aba4ca0405f5db48b3 100644
|
| --- a/content/common/gpu/gpu_channel.cc
|
| +++ b/content/common/gpu/gpu_channel.cc
|
| @@ -982,16 +982,9 @@ void GpuChannel::OnDestroyCommandBuffer(int32_t route_id) {
|
|
|
| void GpuChannel::OnGetDriverBugWorkArounds(
|
| std::vector<std::string>* gpu_driver_bug_workarounds) {
|
| - // TODO(j.isorce): http://crbug.com/599964 Do the extraction of workarounds in
|
| - // the GpuChannelManager constructor. Currently it is done in the FeatureInfo
|
| - // constructor. There is no need to extract them from the command-line every
|
| - // time a new FeatureInfo is created (i.e. per ContextGroup) since parsing
|
| - // result is a constant.
|
| - scoped_refptr<gpu::gles2::FeatureInfo> feature_info =
|
| - new gpu::gles2::FeatureInfo;
|
| gpu_driver_bug_workarounds->clear();
|
| -#define GPU_OP(type, name) \
|
| - if (feature_info->workarounds().name) \
|
| +#define GPU_OP(type, name) \
|
| + if (gpu_channel_manager_->gpu_driver_bug_workarounds().name) \
|
| gpu_driver_bug_workarounds->push_back(#name);
|
| GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
|
| #undef GPU_OP
|
|
|