Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: gpu/ipc/service/gpu_channel.cc

Issue 1892483004: Revert of Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/BUILD.gn ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/ipc/service/gpu_channel.h" 5 #include "gpu/ipc/service/gpu_channel.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 if (stub && !stub->IsScheduled()) { 975 if (stub && !stub->IsScheduled()) {
976 // This stub won't get a chance to reschedule the stream so do that now. 976 // This stub won't get a chance to reschedule the stream so do that now.
977 OnStreamRescheduled(stub->stream_id(), true); 977 OnStreamRescheduled(stub->stream_id(), true);
978 } 978 }
979 979
980 RemoveRoute(route_id); 980 RemoveRoute(route_id);
981 } 981 }
982 982
983 void GpuChannel::OnGetDriverBugWorkArounds( 983 void GpuChannel::OnGetDriverBugWorkArounds(
984 std::vector<std::string>* gpu_driver_bug_workarounds) { 984 std::vector<std::string>* gpu_driver_bug_workarounds) {
985 // TODO(j.isorce): http://crbug.com/599964 Do the extraction of workarounds in
986 // the GpuChannelManager constructor. Currently it is done in the FeatureInfo
987 // constructor. There is no need to extract them from the command-line every
988 // time a new FeatureInfo is created (i.e. per ContextGroup) since parsing
989 // result is a constant.
990 scoped_refptr<gpu::gles2::FeatureInfo> feature_info =
991 new gpu::gles2::FeatureInfo;
985 gpu_driver_bug_workarounds->clear(); 992 gpu_driver_bug_workarounds->clear();
986 #define GPU_OP(type, name) \ 993 #define GPU_OP(type, name) \
987 if (gpu_channel_manager_->gpu_driver_bug_workarounds().name) \ 994 if (feature_info->workarounds().name) \
988 gpu_driver_bug_workarounds->push_back(#name); 995 gpu_driver_bug_workarounds->push_back(#name);
989 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) 996 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
990 #undef GPU_OP 997 #undef GPU_OP
991 } 998 }
992 999
993 void GpuChannel::CacheShader(const std::string& key, 1000 void GpuChannel::CacheShader(const std::string& key,
994 const std::string& shader) { 1001 const std::string& shader) {
995 gpu_channel_manager_->delegate()->StoreShaderToDisk(client_id_, key, shader); 1002 gpu_channel_manager_->delegate()->StoreShaderToDisk(client_id_, key, shader);
996 } 1003 }
997 1004
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 } 1063 }
1057 } 1064 }
1058 } 1065 }
1059 1066
1060 void GpuChannel::HandleUpdateValueState( 1067 void GpuChannel::HandleUpdateValueState(
1061 unsigned int target, const ValueState& state) { 1068 unsigned int target, const ValueState& state) {
1062 pending_valuebuffer_state_->UpdateState(target, state); 1069 pending_valuebuffer_state_->UpdateState(target, state);
1063 } 1070 }
1064 1071
1065 } // namespace gpu 1072 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/BUILD.gn ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698