diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-01 23:54:44 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-01 23:54:44 +0000 |
commit | 59a7ae4e1e6457bfd23c235209bd594471efef95 (patch) | |
tree | 431b908c9b859eb8b85229e9a860e8b0f4c70887 /content/gpu | |
parent | 07cb03a3088dda659d66522c69bbedef677f195e (diff) | |
download | chromium_src-59a7ae4e1e6457bfd23c235209bd594471efef95.zip chromium_src-59a7ae4e1e6457bfd23c235209bd594471efef95.tar.gz chromium_src-59a7ae4e1e6457bfd23c235209bd594471efef95.tar.bz2 |
Delete some unused code found by -Wunused-function
BUG=none,100309
Review URL: https://chromiumcodereview.appspot.com/10977073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu')
-rw-r--r-- | content/gpu/gpu_main.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc index c60d75c..b1a81f6 100644 --- a/content/gpu/gpu_main.cc +++ b/content/gpu/gpu_main.cc @@ -48,7 +48,9 @@ namespace { void WarmUpSandbox(const content::GPUInfo&, bool); +#if defined(OS_LINUX) void CollectGraphicsInfo(content::GPUInfo*); +#endif } // Main function for starting the Gpu process. @@ -227,6 +229,7 @@ int GpuMain(const content::MainFunctionParams& parameters) { namespace { +#if defined(OS_LINUX) void CreateDummyGlContext() { scoped_refptr<gfx::GLSurface> surface( gfx::GLSurface::CreateOffscreenGLSurface(false, gfx::Size(1, 1))); @@ -253,6 +256,7 @@ void CreateDummyGlContext() { VLOG(1) << "gfx::GLContext::MakeCurrent failed"; } } +#endif void WarmUpSandbox(const content::GPUInfo& gpu_info, bool should_initialize_gl_context) { @@ -309,11 +313,13 @@ void WarmUpSandbox(const content::GPUInfo& gpu_info, #endif } +#if defined(OS_LINUX) void CollectGraphicsInfo(content::GPUInfo* gpu_info) { if (!gpu_info_collector::CollectGraphicsInfo(gpu_info)) VLOG(1) << "gpu_info_collector::CollectGraphicsInfo failed"; content::GetContentClient()->SetGpuInfo(*gpu_info); } +#endif } // namespace. |