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

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed)

Created:
9 years, 7 months ago by apatrick_chromium
Modified:
9 years, 7 months ago
Reviewers:
Alexey Marinichev
CC:
chromium-reviews, hclam+watch_chromium.org, sjl, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Paweł Hajdan Jr., jam, acolwell GONE FROM CHROMIUM, annacc, pam+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), darin-cc_chromium.org, scherkus (not reviewing)
Visibility:
Public.

Description

GLContext no longer holds a pointer to a GLSurface. This is part of an ongoing effort to treat GL contexts and GL surfaces as independent entities. TEST=run WebGL on mac, windows and linux, trybots BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86332

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -497 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/gpu/gpu_info_collector.cc View 1 2 3 4 5 6 3 chunks +19 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 4 5 6 4 chunks +7 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 11 chunks +16 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.cc View 1 2 3 4 5 6 4 chunks +8 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler_linux.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler_mac.cc View 1 2 3 4 5 6 4 chunks +5 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler_win.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M media/tools/shader_bench/cpu_color_painter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M media/tools/shader_bench/gpu_color_painter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M media/tools/shader_bench/gpu_color_painter_exp.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M media/tools/shader_bench/gpu_painter.h View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M media/tools/shader_bench/gpu_painter.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M media/tools/shader_bench/shader_bench.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/compositor/compositor_gl.cc View 1 2 3 4 5 6 6 chunks +10 lines, -10 lines 0 comments Download
M ui/gfx/gl/gl_context.h View 1 2 3 4 5 6 3 chunks +15 lines, -36 lines 1 comment Download
M ui/gfx/gl/gl_context.cc View 1 2 3 4 5 6 2 chunks +1 line, -36 lines 0 comments Download
M ui/gfx/gl/gl_context_cgl.h View 1 2 3 4 5 6 1 chunk +7 lines, -15 lines 0 comments Download
M ui/gfx/gl/gl_context_cgl.cc View 1 2 3 4 5 6 4 chunks +34 lines, -21 lines 0 comments Download
M ui/gfx/gl/gl_context_egl.h View 1 2 3 4 5 6 1 chunk +7 lines, -18 lines 0 comments Download
M ui/gfx/gl/gl_context_egl.cc View 1 2 3 4 5 6 6 chunks +20 lines, -49 lines 0 comments Download
M ui/gfx/gl/gl_context_glx.h View 1 2 3 4 5 6 1 chunk +7 lines, -17 lines 0 comments Download
M ui/gfx/gl/gl_context_glx.cc View 1 2 3 4 5 6 6 chunks +30 lines, -30 lines 0 comments Download
M ui/gfx/gl/gl_context_linux.cc View 1 2 3 4 5 6 1 chunk +8 lines, -16 lines 0 comments Download
M ui/gfx/gl/gl_context_mac.cc View 1 2 3 4 5 6 1 chunk +6 lines, -12 lines 0 comments Download
M ui/gfx/gl/gl_context_osmesa.h View 1 2 3 4 5 6 1 chunk +8 lines, -13 lines 0 comments Download
M ui/gfx/gl/gl_context_osmesa.cc View 1 2 3 4 5 6 4 chunks +35 lines, -31 lines 0 comments Download
M ui/gfx/gl/gl_context_stub.h View 1 2 3 4 5 6 1 chunk +7 lines, -10 lines 0 comments Download
M ui/gfx/gl/gl_context_stub.cc View 1 2 3 4 5 6 1 chunk +11 lines, -9 lines 0 comments Download
M ui/gfx/gl/gl_context_wgl.h View 1 2 3 4 5 6 1 chunk +9 lines, -13 lines 0 comments Download
M ui/gfx/gl/gl_context_wgl.cc View 1 2 3 4 5 6 6 chunks +27 lines, -32 lines 0 comments Download
M ui/gfx/gl/gl_context_win.cc View 1 2 3 4 5 6 1 chunk +8 lines, -16 lines 0 comments Download
M ui/gfx/gl/gl_surface_egl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/gl/gl_surface_glx.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/gl/gl_surface_linux.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M ui/gfx/gl/gl_surface_mac.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/gl/gl_surface_osmesa.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M ui/gfx/gl/gl_surface_osmesa.cc View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M ui/gfx/gl/gl_surface_wgl.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/gl/gl_surface_wgl.cc View 1 2 3 4 5 6 5 chunks +12 lines, -22 lines 0 comments Download
M ui/gfx/gl/gl_surface_win.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/surface/accelerated_surface_mac.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M ui/gfx/surface/accelerated_surface_mac.cc View 1 2 3 4 5 6 4 chunks +8 lines, -10 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 4 5 6 4 chunks +26 lines, -13 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.cc View 1 2 3 4 5 6 5 chunks +29 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
apatrick_chromium
9 years, 7 months ago (2011-05-16 20:31:45 UTC) #1
Alexey Marinichev
http://codereview.chromium.org/7021014/diff/8001/ui/gfx/gl/gl_context_glx.cc File ui/gfx/gl/gl_context_glx.cc (right): http://codereview.chromium.org/7021014/diff/8001/ui/gfx/gl/gl_context_glx.cc#newcode47 ui/gfx/gl/gl_context_glx.cc:47: static_cast<GLXFBConfig>(NULL /* TODO: fix */), Nvidia driver segfaults on ...
9 years, 7 months ago (2011-05-17 20:20:53 UTC) #2
apatrick_chromium
Ready for review. Thoroughly tested on mesa.
9 years, 7 months ago (2011-05-18 21:48:00 UTC) #3
amarinichev
On 2011/05/18 21:48:00, apatrick_chromium wrote: > Ready for review. Thoroughly tested on mesa. Doesn't work ...
9 years, 7 months ago (2011-05-19 00:03:04 UTC) #4
apatrick_chromium
I think this will fix it. I added a "compatible_surface" argument to CreateGLContext and it ...
9 years, 7 months ago (2011-05-20 23:57:02 UTC) #5
Alexey Marinichev
9 years, 7 months ago (2011-05-23 18:19:12 UTC) #6
http://codereview.chromium.org/7021014/diff/34001/ui/gfx/gl/gl_context.h
File ui/gfx/gl/gl_context.h (right):

http://codereview.chromium.org/7021014/diff/34001/ui/gfx/gl/gl_context.h#newc...
ui/gfx/gl/gl_context.h:26: GLSurface* compatible_surface) = 0;
compatible_surface is used only by linux and osmesa contexts, right?  Maybe it's
worth mentioning here?

Other than that, LGTM

Powered by Google App Engine
This is Rietveld 408576698