DescriptionLet Android port access properly sized images
Depends on assets in http://crrev.com/15136005, which had to be separated because of the trybots.
With the way things are currently set up, Chrome on Android can't access properly
sized image resources:
* The APK only packages the mostly unused 100% resources (none of
the larger 200% assets)
* The bitmaps don't scale properly when they're converted to Java bitmaps because
the Java code knows nothing about the resource's expected dimensions on different
devices
* The Chromium resource loading system doesn't allow us to take advantage of
Android's resource loading schemes (drawable directories for different screen
sizes, RTL support, etc.).
Instead of #ifdefing out practically everything in the theme_resources.grd file,
this CL introduces a map between the chromium resource IDs and Android drawables,
allowing us to load up the correctly sized Android assets.
The template system is bootstrapped with the InfoBar and WebsiteSettingsUI icon
assets.
TBR=jochen
BUG=237034, 238668
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201328
Patch Set 1 #Patch Set 2 : Making static #Patch Set 3 : Switched invalid ID to 0 #Patch Set 4 : Reworking slightly #Patch Set 5 : Change const definition #Patch Set 6 : Fixed gypi file #Patch Set 7 : Squashing two #Patch Set 8 : Separating image assets #Patch Set 9 : Newline adjustments #Patch Set 10 : Removed header guard comment #
Total comments: 16
Patch Set 11 : Addressing comments #
Total comments: 8
Patch Set 12 : Nits #Patch Set 13 : Squshed together the wrong CLs #Patch Set 14 : Clang fix, maybe #Patch Set 15 : Cleanup #Messages
Total messages: 24 (0 generated)
|