|
Refactor SkGLContext to be actually extendable
Refactor SkGLContext to be actually extendable. Before, non-trivial subclass
would need to destroy the GL connection upon running the destructor. However,
the base class would run GL commands in its own destructor (with destroyed GL
connection)
Refactor so that SkGLContext subclass object creation is completely done by
the factory function. If the factory function returns a non-NULL ptr, it means the context
is usable.
The destruction is done with the destructor instead of virtual function called
upon destruction. Make the destructors not to call virtual functions, for
clarity.
Remove custom 1x1 FBO setup code from the base class. It appears not to be used
anymore.
BUG= skia:2992
Committed: https://skia.googlesource.com/skia/+/30bc88ccd524c0372fd2f8f79190ea4b81685beb
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+361 lines, -515 lines) |
Patch |
|
M |
include/gpu/GrContextFactory.h
|
View
|
1
|
1 chunk |
+9 lines, -11 lines |
0 comments
|
Download
|
|
M |
include/gpu/gl/SkANGLEGLContext.h
|
View
|
1
2
3
4
|
1 chunk |
+15 lines, -8 lines |
0 comments
|
Download
|
|
M |
include/gpu/gl/SkDebugGLContext.h
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -7 lines |
0 comments
|
Download
|
|
M |
include/gpu/gl/SkGLContext.h
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -32 lines |
0 comments
|
Download
|
|
M |
include/gpu/gl/SkMesaGLContext.h
|
View
|
1
2
3
4
|
1 chunk |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
include/gpu/gl/SkNullGLContext.h
|
View
|
1
2
3
4
|
1 chunk |
+15 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/SkGLContext.cpp
|
View
|
|
1 chunk |
+2 lines, -122 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/SkNullGLContext.cpp
|
View
|
|
1 chunk |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/angle/SkANGLEGLContext.cpp
|
View
|
1
2
|
2 chunks |
+31 lines, -34 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/debug/SkDebugGLContext.cpp
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
|
View
|
1
2
3
4
|
4 chunks |
+42 lines, -45 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp
|
View
|
1
2
3
4
|
7 chunks |
+57 lines, -50 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm
|
View
|
1
2
3
4
|
4 chunks |
+29 lines, -25 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
|
View
|
1
2
3
4
|
4 chunks |
+34 lines, -32 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/mesa/SkMesaGLContext.cpp
|
View
|
|
4 chunks |
+32 lines, -31 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/nacl/SkCreatePlatformGLContext_nacl.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -47 lines |
0 comments
|
Download
|
|
M |
src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp
|
View
|
1
2
3
4
5
6
|
7 chunks |
+45 lines, -42 lines |
0 comments
|
Download
|
|
M |
tests/GLInterfaceValidationTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tools/timer/GpuTimer.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 12 (4 generated)
|