Index: ui/gl/gl_context_glx.cc |
diff --git a/ui/gl/gl_context_glx.cc b/ui/gl/gl_context_glx.cc |
index a8711a8fd79969c652caea6a7efcb29f3b8162ae..d79d85c5a40577e6d1ef04e3e659b20f57468bb7 100644 |
--- a/ui/gl/gl_context_glx.cc |
+++ b/ui/gl/gl_context_glx.cc |
@@ -193,19 +193,6 @@ std::string GLContextGLX::GetExtensions() { |
return GLContext::GetExtensions(); |
} |
-bool GLContextGLX::GetTotalGpuMemory(size_t* bytes) { |
- DCHECK(bytes); |
- *bytes = 0; |
- if (HasExtension("GL_NVX_gpu_memory_info")) { |
- GLint kbytes = 0; |
- glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, &kbytes); |
- *bytes = |
- base::saturated_cast<size_t>(1024u * static_cast<uint64_t>(kbytes)); |
- return true; |
- } |
- return false; |
-} |
- |
bool GLContextGLX::WasAllocatedUsingRobustnessExtension() { |
return GLSurfaceGLX::IsCreateContextRobustnessSupported(); |
} |