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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 11564027: Enable virtual context on IMG devices in a different way (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add t604 Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 0a20733671ee2b68a57e98cf012c4f10a1bcb624..a79763fbf59e0d5dc911c69005fd6272ace82d68 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -82,8 +82,7 @@ FeatureInfo::FeatureFlags::FeatureFlags()
use_arb_occlusion_query_for_occlusion_query_boolean(false),
native_vertex_array_object(false),
disable_workarounds(false),
- enable_shader_name_hashing(false),
- enable_virtual_context(false) {
+ enable_shader_name_hashing(false) {
}
FeatureInfo::Workarounds::Workarounds()
@@ -208,12 +207,9 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
GL_RENDERER,
};
bool is_intel = false;
- bool is_nvidia_desktop = false;
+ bool is_nvidia = false;
bool is_amd = false;
bool is_mesa = false;
- bool is_nvidia_tegra = false;
- bool is_img = false;
- bool is_arm = false;
bool is_qualcomm = false;
for (size_t ii = 0; ii < arraysize(string_ids); ++ii) {
const char* str = reinterpret_cast<const char*>(
@@ -222,15 +218,9 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
std::string lstr(StringToLowerASCII(std::string(str)));
StringSet string_set(lstr);
is_intel |= string_set.Contains("intel");
- is_nvidia_desktop |= string_set.Contains("nvidia");
+ is_nvidia |= string_set.Contains("nvidia");
is_amd |= string_set.Contains("amd") || string_set.Contains("ati");
is_mesa |= string_set.Contains("mesa");
-
- is_nvidia_tegra |= string_set.Contains("tegra");
- if (is_nvidia_tegra)
- is_nvidia_desktop = false;
- is_img |= string_set.Contains("imagination");
- is_arm |= string_set.Contains("arm");
is_qualcomm |= string_set.Contains("qualcomm");
}
}
@@ -243,7 +233,6 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableShaderNameHashing);
- feature_flags_.enable_virtual_context = is_img;
bool npot_ok = false;
@@ -672,12 +661,12 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
workarounds_.set_texture_filter_before_generating_mipmap = true;
workarounds_.clear_alpha_in_readpixels = true;
- if (is_nvidia_desktop) {
+ if (is_nvidia) {
workarounds_.use_current_program_after_successful_link = true;
}
#if defined(OS_MACOSX)
- workarounds_.needs_offscreen_buffer_workaround = is_nvidia_desktop;
+ workarounds_.needs_offscreen_buffer_workaround = is_nvidia;
workarounds_.needs_glsl_built_in_function_emulation = is_amd;
if ((is_amd || is_intel) &&
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698