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

Unified Diff: ppapi/shared_impl/ppapi_preferences.cc

Issue 10909102: Also check for accelerated plugins when determining when 3d is really enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppapi_preferences.cc
diff --git a/ppapi/shared_impl/ppapi_preferences.cc b/ppapi/shared_impl/ppapi_preferences.cc
index 1db53c0aef4e6120bfc0dd3cd53a04df99f3b736..c7bb0cbda88065a57dc027289f1fe18f841a3f49 100644
--- a/ppapi/shared_impl/ppapi_preferences.cc
+++ b/ppapi/shared_impl/ppapi_preferences.cc
@@ -24,7 +24,10 @@ Preferences::Preferences(const webkit_glue::WebPreferences& prefs)
number_of_cpu_cores(prefs.number_of_cpu_cores),
is_3d_supported(prefs.flash_3d_enabled),
is_stage3d_supported(prefs.flash_stage3d_enabled),
- is_webgl_supported(prefs.experimental_webgl_enabled) {
+ // This determines both if webgl is supported (experimental_webgl_enabled)
+ // and if it runs in hardware (accelerated_plugins_enabled)
+ is_webgl_supported(prefs.experimental_webgl_enabled &&
+ prefs.accelerated_plugins_enabled) {
}
Preferences::~Preferences() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698