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

Issue 210021: Changes x11_util::GetRenderVisualFormat to determine the format id... (Closed)

Created:
11 years, 3 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
evanm, jhawkins, Evan Stade
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google), agl
Visibility:
Public.

Description

Changes x11_util::GetRenderVisualFormat to keep a cache of render picts. This way we can support different visuals while still caching the value. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26615

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -7 lines) Patch
M chrome/common/x11_util.cc View 1 2 3 chunks +49 lines, -5 lines 1 comment Download
M chrome/common/x11_util_internal.h View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sky
As Adam is out today could one of you guys review this? Thanks, -Scott
11 years, 3 months ago (2009-09-18 15:34:31 UTC) #1
Evan Stade
I really have no clue how expensive the XRenderFindVisualFormat call is, but if we just ...
11 years, 3 months ago (2009-09-18 18:20:47 UTC) #2
sky
On 2009/09/18 18:20:47, Evan Stade wrote: > I really have no clue how expensive the ...
11 years, 3 months ago (2009-09-18 20:06:53 UTC) #3
Evan Stade
looks good, one question: http://codereview.chromium.org/210021/diff/4002/4004 File chrome/common/x11_util.cc (right): http://codereview.chromium.org/210021/diff/4002/4004#newcode52 Line 52: const size_t kMaxCacheSize = ...
11 years, 3 months ago (2009-09-18 20:13:29 UTC) #4
sky
On 2009/09/18 20:13:29, Evan Stade wrote: > looks good, one question: > > http://codereview.chromium.org/210021/diff/4002/4004 > ...
11 years, 3 months ago (2009-09-18 20:28:44 UTC) #5
Evan Stade
If it expected that we will never need more than 2, can we LOG or ...
11 years, 3 months ago (2009-09-18 20:33:11 UTC) #6
sky
On 2009/09/18 20:33:11, Evan Stade wrote: > If it expected that we will never need ...
11 years, 3 months ago (2009-09-18 20:39:14 UTC) #7
Evan Stade
Actually I doubt that those things would cause problems, or we'd already have gotten bug ...
11 years, 3 months ago (2009-09-18 21:58:33 UTC) #8
sky
How about I add a DCHECK if the size of the cache gets to kMax? ...
11 years, 3 months ago (2009-09-18 22:11:36 UTC) #9
Evan Stade
sgtm -- Evan Stade On Fri, Sep 18, 2009 at 3:11 PM, Scott Violet <sky@chromium.org> ...
11 years, 3 months ago (2009-09-18 22:34:30 UTC) #10
evanm
10 years, 1 month ago (2010-11-09 19:30:17 UTC) #11
http://codereview.chromium.org/210021/diff/5002/5004
File chrome/common/x11_util.cc (right):

http://codereview.chromium.org/210021/diff/5002/5004#newcode44
chrome/common/x11_util.cc:44: CachedPictFormats* get_cached_pict_formats() {
Why not GetCachedPictFormats?

Powered by Google App Engine
This is Rietveld 408576698