|
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
Total comments: 2
Total comments: 2
|
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
|
Total messages: 17 (0 generated)
|