| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" |
| 9 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" |
| 10 #include "webkit/plugins/plugin_switches.h" |
| 11 |
| 12 namespace webkit { |
| 13 namespace ppapi { |
| 14 |
| 15 namespace { |
| 16 |
| 17 bool IsGpuBlacklisted() { |
| 18 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 19 CHECK(command_line); |
| 20 return command_line->HasSwitch(switches::kDisablePepper3dForUntrustedUse); |
| 21 } |
| 22 |
| 23 } // namespace |
| 24 |
| 25 const PPB_GpuBlacklist_Private ppb_gpu_blacklist = { |
| 26 &IsGpuBlacklisted, |
| 27 }; |
| 28 |
| 29 // static |
| 30 const PPB_GpuBlacklist_Private* PPB_GpuBlacklist_Private_Impl::GetInterface() { |
| 31 return &ppb_gpu_blacklist; |
| 32 } |
| 33 |
| 34 } // namespace ppapi |
| 35 } // namespace webkit |
| 36 |
| OLD | NEW |