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

Issue 10824168: Cleaning up compositing field trial code and enable FCM in beta/stable (Closed)

Created:
8 years, 4 months ago by Vangelis Kokkevis
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Cleaned up compositing mode field trial code by: 1. Move the code that checks whether FCM and/or ThreadedCompositing is enabled to a separate file (compositor_utils) that can be accessed from all the spots that need the info. 2. Cache results results for checks so that we don't have to check them every frame (string compares were actually showing up in profile results) 3. Some cosmetic changes to variable names to keep them consistent. 4. Re-arranged to code that decides what trials run in which channels. This CL also enables FCM on beta/stable by default but keeps the previous 1/3 experiment running on the other channels. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150359

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : Addressing review comments #

Patch Set 4 : revert some.gyp #

Total comments: 2

Patch Set 5 : variable renaming and namespace fixes #

Patch Set 6 : compositor_utils.cc moved to content\common #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -89 lines) Patch
M chrome/browser/chrome_browser_field_trials.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/gpu_util.h View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/gpu_util.cc View 1 2 3 4 5 chunks +36 lines, -41 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 3 chunks +4 lines, -12 lines 0 comments Download
A content/common/compositor_util.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 3 chunks +8 lines, -15 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A content/public/common/compositor_util.h View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M content/public/common/content_constants.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/public/common/content_constants.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 2 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vangelis
Can you please have a look?
8 years, 4 months ago (2012-08-03 19:10:42 UTC) #1
jbates
LGTM!
8 years, 4 months ago (2012-08-03 20:47:58 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vangelis@chromium.org/10824168/1001
8 years, 4 months ago (2012-08-03 20:54:37 UTC) #3
commit-bot: I haz the power
Presubmit check for 10824168-1001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-03 20:54:41 UTC) #4
vangelis
Dain, mind doing an OWNERS review?
8 years, 4 months ago (2012-08-03 20:59:16 UTC) #5
darin (slow to review)
https://chromiumcodereview.appspot.com/10824168/diff/1001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://chromiumcodereview.appspot.com/10824168/diff/1001/content/browser/renderer_host/render_widget_host_impl.cc#newcode184 content/browser/renderer_host/render_widget_host_impl.cc:184: is_threaded_compositing_enabled_ = nit: place the above code into a ...
8 years, 4 months ago (2012-08-03 21:16:06 UTC) #6
vangelis
Moved the compositing mode detection code to a separate file so that it can be ...
8 years, 4 months ago (2012-08-04 23:33:35 UTC) #7
vangelis
Ready for another review round. Darin, can you please take a look? I'm hoping I ...
8 years, 4 months ago (2012-08-06 17:03:52 UTC) #8
darin (slow to review)
https://chromiumcodereview.appspot.com/10824168/diff/6004/chrome/browser/gpu_util.cc File chrome/browser/gpu_util.cc (right): https://chromiumcodereview.appspot.com/10824168/diff/6004/chrome/browser/gpu_util.cc#newcode211 chrome/browser/gpu_util.cc:211: base::FieldTrial::Probability forceCompositingModeProbability = 0; nit: google_style_variables https://chromiumcodereview.appspot.com/10824168/diff/6004/content/public/common/compositor_util.h File content/public/common/compositor_util.h ...
8 years, 4 months ago (2012-08-06 20:39:38 UTC) #9
vangelis
On 2012/08/06 20:39:38, darin wrote: > https://chromiumcodereview.appspot.com/10824168/diff/6004/chrome/browser/gpu_util.cc > File chrome/browser/gpu_util.cc (right): > > https://chromiumcodereview.appspot.com/10824168/diff/6004/chrome/browser/gpu_util.cc#newcode211 > ...
8 years, 4 months ago (2012-08-06 23:39:59 UTC) #10
vangelis
Thanks. PTAL. If it looks ok, would you mind sending it through the commit queue ...
8 years, 4 months ago (2012-08-06 23:41:20 UTC) #11
darin (slow to review)
LGTM, thanks for the extra rounds.
8 years, 4 months ago (2012-08-07 05:25:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vangelis@chromium.org/10824168/12003
8 years, 4 months ago (2012-08-07 05:25:47 UTC) #13
darin (slow to review)
@jam pointed out that compositor_util.cc should live in src/content/common/ instead since it is implementation of ...
8 years, 4 months ago (2012-08-07 05:29:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vangelis@chromium.org/10824168/7006
8 years, 4 months ago (2012-08-07 15:23:16 UTC) #15
vangelis
On 2012/08/07 05:29:30, darin wrote: > @jam pointed out that compositor_util.cc should live in src/content/common/ ...
8 years, 4 months ago (2012-08-07 15:23:19 UTC) #16
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 16:38:57 UTC) #17
Change committed as 150359

Powered by Google App Engine
This is Rietveld 408576698