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

Issue 2471073002: X11: Use CopyFromParent colormap when possible (Reland) (Closed)

Created:
4 years, 1 month ago by Tom (Use chromium acct)
Modified:
4 years, 1 month ago
CC:
chromium-reviews, derat+watch_chromium.org, sadrul, tfarina, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

X11: Use CopyFromParent colormap when possible (Reland) This CL is a small performance optimization. Previously, XVisualManager always allocated a new colormap for every used visual. However, on non-compositing WMs, on some drivers, this could result in an expensive copy-on-present for every frame, but this should not occur when using the root window's colormap. BUG=661697 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel Committed: https://crrev.com/66edd15df4d85fa3ee13e8dd911bee8ffcfbe885 Cr-Commit-Position: refs/heads/master@{#430050}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add comment, init default_visual_id_ #

Patch Set 3 : Fix segfault in Angle #

Total comments: 1

Patch Set 4 : Don't return CopyFromParent for visual or depth #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -13 lines) Patch
M ui/base/x/x11_util.cc View 1 2 3 3 chunks +15 lines, -11 lines 0 comments Download
M ui/base/x/x11_util_internal.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (23 generated)
Tom (Use chromium acct)
erg + derat PTAL erg: DWTHX11 derat: x11_util*
4 years, 1 month ago (2016-11-02 02:06:26 UTC) #2
Daniel Erat
lgtm for x11_util.* https://codereview.chromium.org/2471073002/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/2471073002/diff/1/ui/base/x/x11_util.cc#newcode1423 ui/base/x/x11_util.cc:1423: system_visual_id_(0), nit: also initialize default_visual_id_ to ...
4 years, 1 month ago (2016-11-02 15:14:46 UTC) #7
Tom (Use chromium acct)
https://codereview.chromium.org/2471073002/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/2471073002/diff/1/ui/base/x/x11_util.cc#newcode1423 ui/base/x/x11_util.cc:1423: system_visual_id_(0), On 2016/11/02 15:14:46, Daniel Erat wrote: > nit: ...
4 years, 1 month ago (2016-11-02 17:38:58 UTC) #8
Elliot Glaysher
lgtm Please add a bug# so we can track this patch as it gets landed, ...
4 years, 1 month ago (2016-11-02 18:01:58 UTC) #9
Tom (Use chromium acct)
On 2016/11/02 18:01:58, Elliot Glaysher wrote: > lgtm > > Please add a bug# so ...
4 years, 1 month ago (2016-11-02 18:50:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2471073002/20001
4 years, 1 month ago (2016-11-02 18:50:56 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-02 19:47:10 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/a03a18c3b24025623e0f2ad96ac56b8427fda7d3 Cr-Commit-Position: refs/heads/master@{#429371}
4 years, 1 month ago (2016-11-02 19:55:33 UTC) #18
ynovikov
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2471403002/ by ynovikov@chromium.org. ...
4 years, 1 month ago (2016-11-03 01:21:12 UTC) #19
Tom (Use chromium acct)
+sadrul for ui/gl/gl_surface_egl.cc
4 years, 1 month ago (2016-11-03 17:45:56 UTC) #24
Corentin Wallez
On 2016/11/03 at 17:45:56, thomasanderson wrote: > +sadrul for ui/gl/gl_surface_egl.cc One comment, that might avoid ...
4 years, 1 month ago (2016-11-03 21:16:51 UTC) #28
Corentin Wallez
https://codereview.chromium.org/2471073002/diff/40001/ui/gl/gl_surface_egl.cc File ui/gl/gl_surface_egl.cc (right): https://codereview.chromium.org/2471073002/diff/40001/ui/gl/gl_surface_egl.cc#newcode152 ui/gl/gl_surface_egl.cc:152: if (visual == CopyFromParent) How about making XVisualManager only ...
4 years, 1 month ago (2016-11-03 21:16:56 UTC) #30
Tom (Use chromium acct)
On 2016/11/03 21:16:56, Corentin Wallez wrote: > https://codereview.chromium.org/2471073002/diff/40001/ui/gl/gl_surface_egl.cc > File ui/gl/gl_surface_egl.cc (right): > > https://codereview.chromium.org/2471073002/diff/40001/ui/gl/gl_surface_egl.cc#newcode152 ...
4 years, 1 month ago (2016-11-04 17:31:44 UTC) #31
Corentin Wallez
On 2016/11/04 at 17:31:44, thomasanderson wrote: > On 2016/11/03 21:16:56, Corentin Wallez wrote: > > ...
4 years, 1 month ago (2016-11-04 17:35:57 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2471073002/60001
4 years, 1 month ago (2016-11-04 21:25:21 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-04 22:55:39 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 22:57:42 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/66edd15df4d85fa3ee13e8dd911bee8ffcfbe885
Cr-Commit-Position: refs/heads/master@{#430050}

Powered by Google App Engine
This is Rietveld 408576698