|
Completely redo how themes are stored on disk and processed at install time.
Rewrites most of BrowserThemeProvider and adds a new class
BrowserThemePack. BrowserThemePack takes all the logic of generating resources
out of the BrowserThemeProvider, does all of them at theme install time
(previously, we lazily generated all the button images and a good number of
colors, which muddled logic quite a bit), and then writes all the data out into
an mmap()able file to speed startup when a theme is installed.
In addition, this changes how the GtkThemeProvider works. The GtkThemeProvider
now generates all of its images lazily and doesn't reach into the
implementation details of BrowserThemeProvider as it used to.
BUG= 24493, 21121
TEST=All the new unit tests pass. All the complex theme startup tests go faster.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34379
Total comments: 1
Total comments: 14
Total comments: 26
Total comments: 12
Total comments: 1
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1885 lines, -1559 lines) |
Patch |
 |
M |
base/base.gyp
|
View
|
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/base.gypi
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/data_pack.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/data_pack.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+84 lines, -13 lines |
0 comments
|
Download
|
 |
M |
base/data_pack_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+43 lines, -11 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/browser_theme_pack.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+193 lines, -0 lines |
2 comments
|
Download
|
 |
A |
chrome/browser/browser_theme_pack.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+865 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/browser_theme_pack_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+335 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_theme_provider.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+13 lines, -200 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_theme_provider.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
15 chunks |
+141 lines, -964 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/browser_theme_provider_mac.mm
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_theme_provider_unittest.cc
|
View
|
|
3 chunks |
+2 lines, -177 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/download_shelf_controller.mm
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/theme_installed_infobar_delegate.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/download_shelf_gtk.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/gtk_theme_provider.h
|
View
|
|
5 chunks |
+30 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/gtk_theme_provider.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+150 lines, -69 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/gtk/gtk_theme_provider_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+5 lines, -70 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profile.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
|
chrome/chrome_tests.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_constants.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_constants.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/pref_names.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
|
chrome/common/pref_names.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/profiles/complex_theme/Default/Cached Theme Images/theme_frame_inactive
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/profiles/complex_theme/Default/Cached Theme Images/theme_frame_incognito
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/profiles/complex_theme/Default/Cached Theme Images/theme_frame_incognito_inactive
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/profiles/complex_theme/Default/Cached Theme Images/theme_frame_original
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/profiles/complex_theme/Default/Cached Theme Images/theme_tab_background_incognito
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/profiles/complex_theme/Default/Cached Theme Images/theme_tab_background_original
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/profiles/complex_theme/Default/Extensions/mblmlcbknbnfebdfjnolmcapmdofhmme/1.1/Cached Theme.pak
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/profiles/complex_theme/Default/PreferencesTemplate
|
View
|
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -32 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|