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

Side by Side Diff: webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.cc

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 "webkit/plugins/plugin_switches.h"
10
11 // todo(nfullagar): Remove this private interface when the SRPC proxy is
12 // permanently disabled.
13
14 namespace webkit {
15 namespace ppapi {
16
17 namespace {
18
19 PP_Bool IsGpuBlacklisted() {
20 CommandLine* command_line = CommandLine::ForCurrentProcess();
21 if (command_line)
22 return PP_FromBool(
23 command_line->HasSwitch(switches::kDisablePepper3d));
24 return PP_TRUE;
25 }
26
27 } // namespace
28
29 const PPB_GpuBlacklist_Private ppb_gpu_blacklist = {
30 &IsGpuBlacklisted,
31 };
32
33 // static
34 const PPB_GpuBlacklist_Private* PPB_GpuBlacklist_Private_Impl::GetInterface() {
35 return &ppb_gpu_blacklist;
36 }
37
38 } // namespace ppapi
39 } // namespace webkit
40
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698