|
Move GLContext creation from //ui/gl to //ui/gl/init.
Move the code that performs GLContext creation to the new target. Remove
the old code and delete the static method from GLContext entirely.
This adds gl_factory_<platform>.cc files for all platforms. These
platform specific files will have GLSurface creation code added next.
Add InitializeGLContext() function to simplify a common pattern that is
repeated frequently. When a new GLContext is created, it's wrapped in a
scoped_refptr and then initialized. If initialization fails nullptr is
returned instead. Encapsulate this logic into a function instead of
repeating it.
There is one code change in GLSurfaceEGL::InitalizeOneOff(). It creates
a GLContext to test if surfaceless contexts are supported. It can no
longer use the deleted method in GLContext. All platforms that hit this
code path will end up creating a GLContextEGL, so just directly
instantiate it.
This change is part of step two from the associated bug.
BUG= 611142
Committed: https://crrev.com/872f45f441e8f7ec36b6947d32622918ffe15fae
Cr-Commit-Position: refs/heads/master@{#398350}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+218 lines, -400 lines) |
Patch |
|
M |
ui/gl/BUILD.gn
|
View
|
|
3 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl.gyp
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_context.h
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_context.cc
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
D |
ui/gl/gl_context_android.cc
|
View
|
|
1 chunk |
+0 lines, -99 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_context_cgl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/gl/gl_context_egl.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
D |
ui/gl/gl_context_mac.mm
|
View
|
|
1 chunk |
+0 lines, -55 lines |
0 comments
|
Download
|
|
D |
ui/gl/gl_context_ozone.cc
|
View
|
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_context_wgl.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
D |
ui/gl/gl_context_win.cc
|
View
|
|
1 chunk |
+0 lines, -59 lines |
0 comments
|
Download
|
|
D |
ui/gl/gl_context_x11.cc
|
View
|
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_egl.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/BUILD.gn
|
View
|
1
|
1 chunk |
+20 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_factory.cc
|
View
|
1
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
A + |
ui/gl/init/gl_factory_android.cc
|
View
|
1
|
4 chunks |
+24 lines, -27 lines |
0 comments
|
Download
|
|
A + |
ui/gl/init/gl_factory_mac.cc
|
View
|
1
|
2 chunks |
+16 lines, -26 lines |
0 comments
|
Download
|
|
A |
ui/gl/init/gl_factory_ozone.cc
|
View
|
1
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gl/init/gl_factory_win.cc
|
View
|
1
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gl/init/gl_factory_x11.cc
|
View
|
1
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gl/init/gl_init.gyp
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 25 (12 generated)
|