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

Unified Diff: content/browser/gpu/gpu_data_manager.cc

Issue 7013002: Only block the GPu process if WebGL, compositing or canvas2D are blacklisted (but not if multisam... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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: content/browser/gpu/gpu_data_manager.cc
===================================================================
--- content/browser/gpu/gpu_data_manager.cc (revision 84902)
+++ content/browser/gpu/gpu_data_manager.cc (working copy)
@@ -98,7 +98,15 @@
}
bool GpuDataManager::GpuAccessAllowed() {
- return gpu_feature_flags_.flags() == 0;
+ uint32 flags = gpu_feature_flags_.flags();
+
+ // This will in effect block access to all GPU features if any of them
+ // is blacklisted.
+ // TODO(vangelis): Restructure the code to make it possible to selectively
+ // blaclist gpu features.
+ return !(flags & GpuFeatureFlags::kGpuFeatureAccelerated2dCanvas ||
+ flags & GpuFeatureFlags::kGpuFeatureAcceleratedCompositing ||
+ flags & GpuFeatureFlags::kGpuFeatureWebgl);
}
void GpuDataManager::AddGpuInfoUpdateCallback(Callback0::Type* callback) {
« 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