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

Unified Diff: content/gpu/gpu_main.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 3 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
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index be8b15403e0b3a01258fc97bbd1e045696857de7..66cfd9bcc88b10102d0acbc038b1ca62edf9a1eb 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.
@@ -226,6 +228,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)));
@@ -252,6 +255,7 @@ void CreateDummyGlContext() {
VLOG(1) << "gfx::GLContext::MakeCurrent failed";
}
}
+#endif
void WarmUpSandbox(const content::GPUInfo& gpu_info,
bool should_initialize_gl_context) {
@@ -308,11 +312,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.

Powered by Google App Engine
This is Rietveld 408576698