|
ozone: Remove InitializeHardware / ShutdownHardware
There's lots of places to run init code:
1. On platform creation
2. On window creation
3. On surface creation
4. LoadEGLGLES2Bindings
5. InitializeHardware
InitializeHardware has the least clear contract of the above, and is
only used for one platform, so let's remove it. The documentation is
also misleading, as it's not actually always called when the comment
says it should (prior to StartSandbox).
In order to call InitializeHardware, you need to actually build a
SurfaceFactoryOzone, so let's move the call there, so that the factory
is fully initialized right after creation and so initialization is
internal to the platform code. ShutdownHardware is never actually
called, so that part is easy.
BUG=none
TEST=ran dri & gbm on link_freon
NOTRY=true
TBR=danakj
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284813
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+25 lines, -66 lines) |
Patch |
|
M |
content/browser/compositor/software_output_device_ozone.cc
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/compositor/software_output_device_ozone_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/gl/gl_surface_ozone.cc
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/caca/caca_window_manager.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/caca/caca_window_manager.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/dri/dri_surface_factory.h
|
View
|
1
2
|
1 chunk |
+13 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/dri/dri_surface_factory.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/ozone/platform/dri/dri_surface_factory_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/dri/ozone_platform_dri.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/dri/ozone_platform_gbm.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/ozone/platform/egltest/ozone_platform_egltest.cc
|
View
|
1
2
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/test/test_window_manager.h
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/test/test_window_manager.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
ui/ozone/public/surface_factory_ozone.h
|
View
|
1
2
|
2 chunks |
+0 lines, -15 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|