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

Issue 827223002: [mojo] Make HTML viewer load the blink resources from the generated pak file. (Closed)

Created:
5 years, 11 months ago by vivekg_samsung
Modified:
5 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo] Make HTML viewer load the blink resources from the generated pak file. Blink is about to make use of blink_resources.grd for the inline resources of user agent stylesheets. This removes the dependency upon using make-file-arrays.py which embeds these resources as strings. See part 1, 2 and 3. Also the .rodata section of libblink_web (in component build mode) is reduced by ~33kb. In this CL, the html viewer would implement the loadResource() method and use the DataPack to load the required resources. The resources are generated from blink_resources.grd which has been added as the deps. Part 1: https://codereview.chromium.org/436843004/ Part 2: https://codereview.chromium.org/422023008 Part 3: https://codereview.chromium.org/573553002 BUG=312586 Committed: https://crrev.com/ce9bcf3e3b788f8ded1cde7702bdc9cfd1f8859e Cr-Commit-Position: refs/heads/master@{#311420}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Python script to generated embedded resources. #

Patch Set 3 : std::tuple is not ported to android yet! #

Total comments: 2

Patch Set 4 : Removed copying of the blink_resources.pak #

Patch Set 5 : Removing keyword 'override' #

Total comments: 1

Patch Set 6 : Adding new blink_resource_constants.h file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -0 lines) Patch
M mojo/services/html_viewer/BUILD.gn View 1 2 3 4 5 3 chunks +23 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/html_viewer/blink_platform_impl.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M mojo/services/html_viewer/blink_platform_impl.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
A mojo/services/html_viewer/blink_resource_constants.h View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A mojo/services/html_viewer/generate_blink_resource_map.py View 1 2 3 4 5 1 chunk +151 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (5 generated)
vivekg
PTAL as this is blocking https://codereview.chromium.org/573553002 from landing.
5 years, 11 months ago (2014-12-30 07:04:13 UTC) #3
vivekg
On 2014/12/30 07:04:13, vivekg_ wrote: > PTAL as this is blocking https://codereview.chromium.org/573553002 from landing. jamesr@, ...
5 years, 11 months ago (2015-01-05 02:29:55 UTC) #5
jamesr
This is wrong - mojo apps in general can't just use the file service since ...
5 years, 11 months ago (2015-01-05 23:54:40 UTC) #6
vivekg
On 2015/01/05 at 23:54:40, jamesr wrote: > This is wrong - mojo apps in general ...
5 years, 11 months ago (2015-01-07 15:51:16 UTC) #7
jamesr
For simplicity I would try to link the whole pak file in to rodata and ...
5 years, 11 months ago (2015-01-07 16:35:27 UTC) #8
vivekg
On 2015/01/07 at 16:35:27, jamesr wrote: > For simplicity I would try to link the ...
5 years, 11 months ago (2015-01-07 16:46:19 UTC) #9
jamesr
Hmm yeah, I hadn't looked at ui/base/resource/data_pack very closely. It does appear to only load ...
5 years, 11 months ago (2015-01-08 01:43:19 UTC) #10
vivekg
On 2015/01/08 at 01:43:19, jamesr wrote: > Hmm yeah, I hadn't looked at ui/base/resource/data_pack very ...
5 years, 11 months ago (2015-01-09 10:01:13 UTC) #11
vivekg
Seems like std::tuple is not yet ported on android toolchain. Hence replacing the usage of ...
5 years, 11 months ago (2015-01-09 12:20:37 UTC) #12
jamesr
std::tuple is a C++11 library feature, so it's not allowed on any platform. lgtm https://codereview.chromium.org/827223002/diff/40001/mojo/services/html_viewer/BUILD.gn ...
5 years, 11 months ago (2015-01-09 19:11:49 UTC) #13
vivekg
On 2015/01/09 at 19:11:49, jamesr wrote: Thank you for the review. > https://codereview.chromium.org/827223002/diff/40001/mojo/services/html_viewer/BUILD.gn#newcode8 > mojo/services/html_viewer/BUILD.gn:8: ...
5 years, 11 months ago (2015-01-10 02:10:42 UTC) #14
vivekg
jamesr@, I am getting chromium_presubmit error as - Missing LGTM from OWNERS of dependencies added ...
5 years, 11 months ago (2015-01-10 02:24:15 UTC) #15
vivekg
ah got it. +darin@, PTAL, thank you.
5 years, 11 months ago (2015-01-10 02:26:38 UTC) #16
vivekg
5 years, 11 months ago (2015-01-10 02:27:02 UTC) #18
darin (slow to review)
https://codereview.chromium.org/827223002/diff/1/mojo/services/html_viewer/blink_platform_impl.h File mojo/services/html_viewer/blink_platform_impl.h (right): https://codereview.chromium.org/827223002/diff/1/mojo/services/html_viewer/blink_platform_impl.h#newcode56 mojo/services/html_viewer/blink_platform_impl.h:56: virtual blink::WebData loadResource(const char* name) override; nit: when overriding ...
5 years, 11 months ago (2015-01-10 05:12:19 UTC) #19
vivekg
On 2015/01/10 at 05:12:19, darin wrote: > https://codereview.chromium.org/827223002/diff/1/mojo/services/html_viewer/blink_platform_impl.h > File mojo/services/html_viewer/blink_platform_impl.h (right): > > https://codereview.chromium.org/827223002/diff/1/mojo/services/html_viewer/blink_platform_impl.h#newcode56 ...
5 years, 11 months ago (2015-01-10 05:21:43 UTC) #20
vivekg
Friendly ping.
5 years, 11 months ago (2015-01-12 03:19:32 UTC) #21
vivekg
darin@, awaiting your feedback, thank you.
5 years, 11 months ago (2015-01-13 19:25:17 UTC) #22
darin (slow to review)
On 2015/01/13 19:25:17, vivekg_ wrote: > darin@, awaiting your feedback, thank you. Apologies for the ...
5 years, 11 months ago (2015-01-13 19:27:44 UTC) #23
darin (slow to review)
LGTM https://codereview.chromium.org/827223002/diff/80001/mojo/services/html_viewer/blink_platform_impl.cc File mojo/services/html_viewer/blink_platform_impl.cc (right): https://codereview.chromium.org/827223002/diff/80001/mojo/services/html_viewer/blink_platform_impl.cc#newcode34 mojo/services/html_viewer/blink_platform_impl.cc:34: const DataResource kDataResources[] = { nit: I'd probably ...
5 years, 11 months ago (2015-01-13 19:29:59 UTC) #24
vivekg
On 2015/01/13 at 19:29:59, darin wrote: > LGTM > > https://codereview.chromium.org/827223002/diff/80001/mojo/services/html_viewer/blink_platform_impl.cc > File mojo/services/html_viewer/blink_platform_impl.cc (right): ...
5 years, 11 months ago (2015-01-13 19:33:24 UTC) #25
vivekg
I have uploaded a new patch as per darin@'s review. Can darin@ or jamesr@ rubber ...
5 years, 11 months ago (2015-01-14 05:09:10 UTC) #26
jamesr
lgtm
5 years, 11 months ago (2015-01-14 05:12:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/827223002/100001
5 years, 11 months ago (2015-01-14 06:42:06 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-14 06:43:04 UTC) #30
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 06:44:38 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ce9bcf3e3b788f8ded1cde7702bdc9cfd1f8859e
Cr-Commit-Position: refs/heads/master@{#311420}

Powered by Google App Engine
This is Rietveld 408576698