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

Issue 1110813002: Fix assert in GetOverlayRect when transforming video with Ozone overlay (Closed)

Created:
5 years, 8 months ago by halliwell
Modified:
5 years, 7 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix assert in GetOverlayRect when transforming video with Ozone overlay One of my testcases for updating Chromecast to use Ozone overlays has css animation on a video element's transform. I hit an assert in the call to ToNearestRect, which assumes the coordinates of the rectangle are close to integers (within 0.01). BUG= Committed: https://crrev.com/56e6db77baec30e48ef94eae9f81e2793db637ea Cr-Commit-Position: refs/heads/master@{#328218}

Patch Set 1 #

Patch Set 2 : Adds unit test #

Patch Set 3 : Changes display_rect to float #

Total comments: 5

Patch Set 4 : Added comments on need to snap display_rect when accepting #

Patch Set 5 : Reject non-integer rects in Ozone GBM validator #

Total comments: 6

Patch Set 6 : Some nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -16 lines) Patch
M cc/output/gl_renderer.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M cc/output/overlay_candidate.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M cc/output/overlay_candidate.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M cc/output/overlay_candidate_validator.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gbm_surface_factory.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M ui/ozone/public/overlay_candidates_ozone.h View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (5 generated)
halliwell
5 years, 8 months ago (2015-04-27 23:24:54 UTC) #2
danakj
Unit test?
5 years, 8 months ago (2015-04-27 23:41:24 UTC) #4
halliwell
On 2015/04/27 23:41:24, danakj wrote: > Unit test? Unit test added.
5 years, 7 months ago (2015-04-28 15:43:44 UTC) #5
halliwell
On 2015/04/28 15:43:44, halliwell wrote: > On 2015/04/27 23:41:24, danakj wrote: > > Unit test? ...
5 years, 7 months ago (2015-04-29 16:28:57 UTC) #6
danakj
maybe achaulk can answer this, but how can an overlay be positioned at non-integer positions. ...
5 years, 7 months ago (2015-04-29 16:56:29 UTC) #7
achaulk
Yeah, it may look different if we have this situation, the hardware will only work ...
5 years, 7 months ago (2015-04-29 17:03:05 UTC) #8
halliwell
On 2015/04/29 17:03:05, achaulk wrote: > Yeah, it may look different if we have this ...
5 years, 7 months ago (2015-04-29 17:08:41 UTC) #9
danakj
On Wed, Apr 29, 2015 at 10:08 AM, <halliwell@chromium.org> wrote: > On 2015/04/29 17:03:05, achaulk ...
5 years, 7 months ago (2015-04-29 17:10:41 UTC) #10
achaulk
On 2015/04/29 17:08:41, halliwell wrote: > On 2015/04/29 17:03:05, achaulk wrote: > > Yeah, it ...
5 years, 7 months ago (2015-04-29 17:12:22 UTC) #11
halliwell
On 2015/04/29 17:12:22, achaulk wrote: > On 2015/04/29 17:08:41, halliwell wrote: > > On 2015/04/29 ...
5 years, 7 months ago (2015-04-29 17:26:19 UTC) #12
danakj
On Wed, Apr 29, 2015 at 10:26 AM, <halliwell@chromium.org> wrote: > On 2015/04/29 17:12:22, achaulk ...
5 years, 7 months ago (2015-04-29 17:53:45 UTC) #13
halliwell
On 2015/04/29 17:53:45, danakj wrote: > On Wed, Apr 29, 2015 at 10:26 AM, <mailto:halliwell@chromium.org> ...
5 years, 7 months ago (2015-04-29 21:31:52 UTC) #15
danakj
On Wed, Apr 29, 2015 at 2:31 PM, <halliwell@chromium.org> wrote: > On 2015/04/29 17:53:45, danakj ...
5 years, 7 months ago (2015-04-29 21:36:59 UTC) #16
achaulk
https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc#newcode3452 cc/output/gl_renderer.cc:3452: display_rect, You'll still hit the same problem here, no? ...
5 years, 7 months ago (2015-04-29 21:37:03 UTC) #17
halliwell
https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc#newcode3452 cc/output/gl_renderer.cc:3452: display_rect, On 2015/04/29 21:37:03, achaulk wrote: > You'll still ...
5 years, 7 months ago (2015-04-29 21:42:55 UTC) #18
achaulk
https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc#newcode3452 cc/output/gl_renderer.cc:3452: display_rect, On 2015/04/29 21:42:54, halliwell wrote: > On 2015/04/29 ...
5 years, 7 months ago (2015-04-29 21:45:00 UTC) #19
alexst (slow to review)
On 2015/04/29 21:45:00, achaulk wrote: > https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc > File cc/output/gl_renderer.cc (right): > > https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc#newcode3452 > ...
5 years, 7 months ago (2015-04-30 13:43:52 UTC) #20
halliwell
On 2015/04/30 13:43:52, alexst wrote: > On 2015/04/29 21:45:00, achaulk wrote: > > https://codereview.chromium.org/1110813002/diff/40001/cc/output/gl_renderer.cc > ...
5 years, 7 months ago (2015-04-30 14:18:43 UTC) #21
alexst (slow to review)
On 2015/04/30 14:18:43, halliwell wrote: > On 2015/04/30 13:43:52, alexst wrote: > > On 2015/04/29 ...
5 years, 7 months ago (2015-04-30 14:25:37 UTC) #22
halliwell
On 2015/04/30 14:25:37, alexst wrote: > On 2015/04/30 14:18:43, halliwell wrote: > > On 2015/04/30 ...
5 years, 7 months ago (2015-04-30 18:24:10 UTC) #23
achaulk
On 2015/04/30 18:24:10, halliwell wrote: > On 2015/04/30 14:25:37, alexst wrote: > > On 2015/04/30 ...
5 years, 7 months ago (2015-04-30 21:14:06 UTC) #24
halliwell
On 2015/04/30 21:14:06, achaulk wrote: > On 2015/04/30 18:24:10, halliwell wrote: > > On 2015/04/30 ...
5 years, 7 months ago (2015-05-01 00:09:16 UTC) #25
alexst (slow to review)
lgtm
5 years, 7 months ago (2015-05-01 14:04:20 UTC) #26
halliwell
On 2015/05/01 14:04:20, alexst wrote: > lgtm @danakj ping on cc/ changes
5 years, 7 months ago (2015-05-01 16:09:22 UTC) #27
danakj
LGTM https://codereview.chromium.org/1110813002/diff/80001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1110813002/diff/80001/cc/output/gl_renderer.cc#newcode3437 cc/output/gl_renderer.cc:3437: for (it = overlays.begin(); it != overlays.end(); ++it) ...
5 years, 7 months ago (2015-05-04 19:56:41 UTC) #28
halliwell
https://codereview.chromium.org/1110813002/diff/80001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/1110813002/diff/80001/cc/output/gl_renderer.cc#newcode3437 cc/output/gl_renderer.cc:3437: for (it = overlays.begin(); it != overlays.end(); ++it) { ...
5 years, 7 months ago (2015-05-04 21:38:16 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1110813002/100001
5 years, 7 months ago (2015-05-04 21:39:18 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-04 23:37:42 UTC) #33
commit-bot: I haz the power
5 years, 7 months ago (2015-05-04 23:38:46 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/56e6db77baec30e48ef94eae9f81e2793db637ea
Cr-Commit-Position: refs/heads/master@{#328218}

Powered by Google App Engine
This is Rietveld 408576698