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

Issue 399953003: ozone: Remove InitializeHardware / ShutdownHardware (Closed)

Created:
6 years, 5 months ago by spang
Modified:
6 years, 5 months ago
CC:
chromium-reviews, rjkroege, ozone-reviews_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 5

Patch Set 2 : fix fix function comments #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : fix tests #

Patch Set 6 : fix tests more #

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

Messages

Total messages: 14 (0 generated)
spang
6 years, 5 months ago (2014-07-18 18:58:15 UTC) #1
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/399953003/diff/1/ui/ozone/platform/caca/caca_window_manager.cc File ui/ozone/platform/caca/caca_window_manager.cc (left): https://codereview.chromium.org/399953003/diff/1/ui/ozone/platform/caca/caca_window_manager.cc#oldcode128 ui/ozone/platform/caca/caca_window_manager.cc:128: void CacaWindowManager::ShutdownHardware() { There's seriously an Ozone port to ...
6 years, 5 months ago (2014-07-18 22:01:01 UTC) #2
spang
https://codereview.chromium.org/399953003/diff/1/ui/ozone/platform/caca/caca_window_manager.cc File ui/ozone/platform/caca/caca_window_manager.cc (left): https://codereview.chromium.org/399953003/diff/1/ui/ozone/platform/caca/caca_window_manager.cc#oldcode128 ui/ozone/platform/caca/caca_window_manager.cc:128: void CacaWindowManager::ShutdownHardware() { On 2014/07/18 22:01:01, Ken Russell wrote: ...
6 years, 5 months ago (2014-07-18 22:11:11 UTC) #3
Ken Russell (switch to Gerrit)
LGTM https://codereview.chromium.org/399953003/diff/1/ui/ozone/platform/dri/dri_surface_factory.h File ui/ozone/platform/dri/dri_surface_factory.h (right): https://codereview.chromium.org/399953003/diff/1/ui/ozone/platform/dri/dri_surface_factory.h#newcode41 ui/ozone/platform/dri/dri_surface_factory.h:41: // SurfaceFactoryOzone overrides: On 2014/07/18 22:11:11, spang wrote: ...
6 years, 5 months ago (2014-07-18 22:37:46 UTC) #4
dnicoara
lgtm
6 years, 5 months ago (2014-07-18 22:59:35 UTC) #5
spang
The CQ bit was checked by spang@chromium.org
6 years, 5 months ago (2014-07-21 16:40:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/399953003/20001
6 years, 5 months ago (2014-07-21 16:42:08 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 18:54:22 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 18:57:55 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/81297)
6 years, 5 months ago (2014-07-21 18:57:56 UTC) #10
spang
+danakj for content/browser/compositor/
6 years, 5 months ago (2014-07-21 19:55:22 UTC) #11
spang
The CQ bit was checked by spang@chromium.org
6 years, 5 months ago (2014-07-22 23:44:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/399953003/100001
6 years, 5 months ago (2014-07-22 23:47:14 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 23:49:26 UTC) #14
Message was sent while issue was closed.
Change committed as 284813

Powered by Google App Engine
This is Rietveld 408576698