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

Issue 1993073005: Mozart: Avoid blocking in glCheckFramebufferStatus(). (Closed)

Created:
4 years, 7 months ago by jeffbrown
Modified:
4 years, 7 months ago
Reviewers:
abarth, mikejurka
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@moz-jank3
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Mozart: Avoid blocking in glCheckFramebufferStatus(). glCheckFramebufferStatus() causes the GL command buffer to be flushed which can block for a very long time and significantly hurts performance. Changed the Ganesh image factory to only ask for an ordinary texture rather than a rendering target when binding to a mailbox. Skia checks the framebuffer status eagerly when creating a rendering target which causes a stall. This code path gets hit every time the compositor accepts an image from an app (so usually at least once per frame per app). Changed the GL renderer to avoid checking framebuffer status except on the first frame in debug mode (as a sanity check). BUG= R=mikejurka@google.com Committed: https://chromium.googlesource.com/external/mojo/+/d75adea16bd51dcc1aac1d2f416544454b4d84ba

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M mojo/skia/ganesh_image_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/ui/gl_renderer.h View 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/ui/gl_renderer.cc View 1 chunk +9 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 5 (2 generated)
jeffbrown
4 years, 7 months ago (2016-05-20 00:21:32 UTC) #2
mikejurka
lgtm awesome!!
4 years, 7 months ago (2016-05-20 00:31:25 UTC) #3
jeffbrown
4 years, 7 months ago (2016-05-20 20:18:47 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d75adea16bd51dcc1aac1d2f416544454b4d84ba (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698