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

Issue 1418503012: [Ozone-DRM] Remove bool return value for SchedulePageFlip call (Closed)

Created:
5 years, 1 month ago by dnicoara
Modified:
5 years, 1 month ago
Reviewers:
spang
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Ozone-DRM] Remove bool return value for SchedulePageFlip call The HardwareDisplayController::SchedulePageFlip call is expected to always call the swap callback it is provided. Having an additional bool return code has no value and promotes confusion as to which cases the HardwareDisplayController should handle. This change also splits a HDC::TestPageFlip() method since it is currently used in a synchronous fashion. Also fix the case where a failed page flip is supposed to be treated as a successful one. BUG=none Committed: https://crrev.com/4d792fca0847afa0b5b406154ad2da91a83f50e4 Cr-Commit-Position: refs/heads/master@{#357376}

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase and fix comment #

Total comments: 2

Patch Set 3 : Rebased & updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -122 lines) Patch
M ui/ozone/platform/drm/gpu/crtc_controller.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/crtc_controller.cc View 1 2 4 chunks +9 lines, -12 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 3 chunks +2 lines, -11 lines 0 comments Download
M ui/ozone/platform/drm/gpu/hardware_display_controller.h View 2 chunks +9 lines, -7 lines 0 comments Download
M ui/ozone/platform/drm/gpu/hardware_display_controller.cc View 2 chunks +19 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc View 1 2 19 chunks +105 lines, -85 lines 0 comments Download
M ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418503012/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418503012/1
5 years, 1 month ago (2015-10-29 19:37:35 UTC) #2
dnicoara
PTAL FYI: I split the TestPageFlip() as a separate function since it is sufficiently complex ...
5 years, 1 month ago (2015-10-29 19:40:32 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-29 19:54:32 UTC) #6
spang
https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc File ui/ozone/platform/drm/gpu/crtc_controller.cc (left): https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc#oldcode75 ui/ozone/platform/drm/gpu/crtc_controller.cc:75: bool CrtcController::SchedulePageFlip( Still two statuses being returned here. https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc ...
5 years, 1 month ago (2015-10-29 20:59:21 UTC) #7
dnicoara
https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc File ui/ozone/platform/drm/gpu/crtc_controller.cc (right): https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc#newcode129 ui/ozone/platform/drm/gpu/crtc_controller.cc:129: current_planes_.swap(pending_planes_); On 2015/10/29 20:59:20, spang wrote: > I think ...
5 years, 1 month ago (2015-10-30 14:59:31 UTC) #8
spang
On 2015/10/30 14:59:31, dnicoara wrote: > https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc > File ui/ozone/platform/drm/gpu/crtc_controller.cc (right): > > https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc#newcode129 > ...
5 years, 1 month ago (2015-10-30 17:07:16 UTC) #9
dnicoara
https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc File ui/ozone/platform/drm/gpu/crtc_controller.cc (right): https://codereview.chromium.org/1418503012/diff/1/ui/ozone/platform/drm/gpu/crtc_controller.cc#newcode167 ui/ozone/platform/drm/gpu/crtc_controller.cc:167: if (page_flip_request_.get()) { On 2015/10/30 14:59:31, dnicoara wrote: > ...
5 years, 1 month ago (2015-10-30 17:21:59 UTC) #10
spang
lgtm https://codereview.chromium.org/1418503012/diff/20001/ui/ozone/platform/drm/gpu/crtc_controller.h File ui/ozone/platform/drm/gpu/crtc_controller.h (right): https://codereview.chromium.org/1418503012/diff/20001/ui/ozone/platform/drm/gpu/crtc_controller.h#newcode62 ui/ozone/platform/drm/gpu/crtc_controller.h:62: // Called if the page flip event wasn't ...
5 years, 1 month ago (2015-10-30 20:27:02 UTC) #11
dnicoara
https://codereview.chromium.org/1418503012/diff/20001/ui/ozone/platform/drm/gpu/crtc_controller.h File ui/ozone/platform/drm/gpu/crtc_controller.h (right): https://codereview.chromium.org/1418503012/diff/20001/ui/ozone/platform/drm/gpu/crtc_controller.h#newcode62 ui/ozone/platform/drm/gpu/crtc_controller.h:62: // Called if the page flip event wasn't scheduled ...
5 years, 1 month ago (2015-11-02 17:04:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418503012/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418503012/40001
5 years, 1 month ago (2015-11-02 17:04:18 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-02 17:20:48 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 17:21:33 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4d792fca0847afa0b5b406154ad2da91a83f50e4
Cr-Commit-Position: refs/heads/master@{#357376}

Powered by Google App Engine
This is Rietveld 408576698