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

Issue 10957009: Get real GPU memory values on NV+Linux and OS X (Closed)

Created:
8 years, 3 months ago by ccameron
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Get real GPU memory values on NV+Linux and OS X. Add an interface to GLContext to query the GPU's total video memory. Note that this is the amount of video memory on the currently-rendering GPU, so different contexts will give different values, and the same context may give different values over time (for instance, on a Macbook Pro with graphics switching). Of note is that on a Macbook Pro with graphics switching enabled, the contexts don't move together between GPUs -- some stay on the integrated GPU while others use the discrete GPU. BUG=132994 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157879

Patch Set 1 #

Patch Set 2 : Fix GLX build #

Total comments: 5

Patch Set 3 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -15 lines) Patch
M third_party/khronos/GLES2/gl2ext.h View 2 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/khronos/README.chromium View 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/mesa/MesaLib/include/GL/glext.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/mesa/README.chromium View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_context.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gl/gl_context.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gl/gl_context_cgl.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M ui/gl/gl_context_cgl.cc View 1 2 3 chunks +58 lines, -0 lines 0 comments Download
M ui/gl/gl_context_glx.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_context_glx.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M ui/gl/gl_context_mac.mm View 1 2 3 chunks +1 line, -15 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ccameron
"git cl try" seems to not work for me lately -- could you add some ...
8 years, 3 months ago (2012-09-20 02:12:25 UTC) #1
Ken Russell (switch to Gerrit)
LGTM if the issues below are fixed. https://codereview.chromium.org/10957009/diff/10/third_party/mesa/MesaLib/include/GL/glext.h File third_party/mesa/MesaLib/include/GL/glext.h (right): https://codereview.chromium.org/10957009/diff/10/third_party/mesa/MesaLib/include/GL/glext.h#newcode5022 third_party/mesa/MesaLib/include/GL/glext.h:5022: #ifndef GL_NVX_gpu_memory_info ...
8 years, 3 months ago (2012-09-20 06:47:23 UTC) #2
ccameron
https://codereview.chromium.org/10957009/diff/10/third_party/mesa/MesaLib/include/GL/glext.h File third_party/mesa/MesaLib/include/GL/glext.h (right): https://codereview.chromium.org/10957009/diff/10/third_party/mesa/MesaLib/include/GL/glext.h#newcode5022 third_party/mesa/MesaLib/include/GL/glext.h:5022: #ifndef GL_NVX_gpu_memory_info On 2012/09/20 06:47:23, kbr wrote: > Is ...
8 years, 3 months ago (2012-09-20 21:22:41 UTC) #3
Ken Russell (switch to Gerrit)
LGTM again.
8 years, 3 months ago (2012-09-20 21:28:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/10957009/5010
8 years, 3 months ago (2012-09-20 21:32:43 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-09-21 00:24:04 UTC) #6
Change committed as 157879

Powered by Google App Engine
This is Rietveld 408576698