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

Issue 693313002: Dont set SwapInterval with Surfaceless. (Closed)

Created:
6 years, 1 month ago by kalyank
Modified:
6 years, 1 month ago
Reviewers:
dnicoara, piman
CC:
chromium-reviews, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Dont set SwapInterval with Surfaceless. EglSwapInterval doesn't take any effect when using a Surfacless Context and will just return EGL_BAD_SURFACE in this case. This patch adds checks to track if the current context is surfaceless and ignores swap interval call in that case. Tested by building Chromium with ChromesOS and Ozone builds options and by launching chromium with the following run time options: chrome --no-sandbox --ozone-platform=gbm --ozone-use-surfaceless After this change, I don't see any more EGL error as result of setting the SwapInterval with surfaceless context during the launch time. i.e. libEGL debug: EGL user error 0x300d (EGL_BAD_SURFACE) in eglSwapInterval BUG=380861 Committed: https://crrev.com/bd709ad9b0e1f2d7124eb4d91ad9cde24245a7e6 Cr-Commit-Position: refs/heads/master@{#302506}

Patch Set 1 #

Patch Set 2 : Missing Changes #

Total comments: 3

Patch Set 3 : Avoid adding another boolean #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M ui/gl/gl_context_egl.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M ui/gl/gl_surface_egl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_ozone.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
kalyank
6 years, 1 month ago (2014-11-01 16:31:32 UTC) #2
piman
https://codereview.chromium.org/693313002/diff/20001/ui/gl/gl_context_egl.cc File ui/gl/gl_context_egl.cc (right): https://codereview.chromium.org/693313002/diff/20001/ui/gl/gl_context_egl.cc#newcode184 ui/gl/gl_context_egl.cc:184: if (is_surfaceless_context_) Rather than stashing a bool, you can ...
6 years, 1 month ago (2014-11-03 19:43:13 UTC) #3
kalyank
https://codereview.chromium.org/693313002/diff/20001/ui/gl/gl_context_egl.cc File ui/gl/gl_context_egl.cc (right): https://codereview.chromium.org/693313002/diff/20001/ui/gl/gl_context_egl.cc#newcode184 ui/gl/gl_context_egl.cc:184: if (is_surfaceless_context_) On 2014/11/03 19:43:13, piman (Very slow to ...
6 years, 1 month ago (2014-11-03 20:04:54 UTC) #4
kalyank
@piman PTAL. https://codereview.chromium.org/693313002/diff/20001/ui/gl/gl_context_egl.cc File ui/gl/gl_context_egl.cc (right): https://codereview.chromium.org/693313002/diff/20001/ui/gl/gl_context_egl.cc#newcode184 ui/gl/gl_context_egl.cc:184: if (is_surfaceless_context_) On 2014/11/03 19:43:13, piman (Very ...
6 years, 1 month ago (2014-11-03 20:46:11 UTC) #5
piman
lgtm
6 years, 1 month ago (2014-11-03 21:15:01 UTC) #6
kalyank
On 2014/11/03 21:15:01, piman (Very slow to review) wrote: > lgtm @dnicoara Can you PTAL ...
6 years, 1 month ago (2014-11-03 21:21:36 UTC) #8
kalyank
6 years, 1 month ago (2014-11-03 21:22:06 UTC) #9
dnicoara
lgtm
6 years, 1 month ago (2014-11-03 21:50:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/693313002/40001
6 years, 1 month ago (2014-11-03 21:55:59 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-03 22:43:51 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 22:45:13 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bd709ad9b0e1f2d7124eb4d91ad9cde24245a7e6
Cr-Commit-Position: refs/heads/master@{#302506}

Powered by Google App Engine
This is Rietveld 408576698