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

Unified Diff: webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc

Issue 7790016: Hookup Gpu blacklist with NaCl Pepper3D access. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc (revision 0)
+++ webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h"
+
+#include "base/command_line.h"
+#include "base/logging.h"
+#include "ppapi/c/private/ppb_gpu_blacklist_private.h"
+#include "webkit/plugins/plugin_switches.h"
+
+namespace webkit {
+namespace ppapi {
+
+namespace {
+
+bool IsGpuBlacklisted() {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ CHECK(command_line);
+ return command_line->HasSwitch(switches::kDisablePepper3dForUntrustedUse);
+}
+
+} // namespace
+
+const PPB_GpuBlacklist_Private ppb_gpu_blacklist = {
+ &IsGpuBlacklisted,
+};
+
+// static
+const PPB_GpuBlacklist_Private* PPB_GpuBlacklist_Private_Impl::GetInterface() {
+ return &ppb_gpu_blacklist;
+}
+
+} // namespace ppapi
+} // namespace webkit
+
Property changes on: webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698