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

Issue 731133002: Upstream ResourceManager (Closed)

Created:
6 years, 1 month ago by Jaekyun Seok (inactive)
Modified:
5 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, jam, pvalenzuela+watch_chromium.org, darin-cc_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Upstream ResourceManager And expose ResourceManager through the Compositor interface. https://chrome-internal-review.googlesource.com/184331/ is a counter part in downstream. BUG=426939 Committed: https://crrev.com/d5de7e4469af397027ca13927c4426baec270d4e Cr-Commit-Position: refs/heads/master@{#306830}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix build failures #

Patch Set 4 : Fix build failure #

Patch Set 5 : Add generated enum class to BUILD.gn #

Total comments: 18

Patch Set 6 : Apply David's comments #

Total comments: 22

Patch Set 7 : Apply reviewers' comments #

Patch Set 8 : Fix build failure #

Total comments: 12

Patch Set 9 : Move codes under ui/android #

Patch Set 10 : Fix failure of runhooks #

Patch Set 11 : Fix clang build failure #

Total comments: 4

Patch Set 12 : Rename namespace #

Total comments: 25

Patch Set 13 : Apply Daniel's comments #

Patch Set 14 : Fix gn build breakage #

Patch Set 15 : Update OWNERS #

Patch Set 16 : #

Patch Set 17 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1691 lines, -2 lines) Patch
M android_webview/java_library_common.mk View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/libwebviewchromium.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/app/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -1 line 0 comments Download
M content/content_app.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/android/compositor.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/test/content_test_suite_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -1 line 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +32 lines, -0 lines 0 comments Download
A ui/android/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -0 lines 0 comments Download
M ui/android/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/LayoutResource.java View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/Resource.java View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/ResourceLoader.java View 1 2 3 4 5 6 7 8 1 chunk +71 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/ResourceManager.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +169 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/async/AsyncPreloadResourceLoader.java View 1 2 3 4 5 6 7 8 1 chunk +116 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/dynamics/BitmapDynamicResource.java View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResource.java View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResourceLoader.java View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java View 1 2 3 4 5 6 7 8 1 chunk +164 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/statics/NinePatchData.java View 1 2 3 4 5 6 7 8 1 chunk +136 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/statics/StaticResource.java View 1 2 3 4 5 6 7 8 1 chunk +132 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/statics/StaticResourceLoader.java View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java View 1 2 3 4 5 6 7 8 1 chunk +93 lines, -0 lines 0 comments Download
A ui/android/resources/resource_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +91 lines, -0 lines 0 comments Download
A ui/android/resources/resource_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +138 lines, -0 lines 0 comments Download
A ui/android/resources/ui_resource_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +49 lines, -0 lines 0 comments Download
A ui/android/resources/ui_resource_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +45 lines, -0 lines 0 comments Download
A ui/android/ui_android_export.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +31 lines, -0 lines 0 comments Download
A ui/android/ui_android_jni_registrar.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +19 lines, -0 lines 0 comments Download
A ui/android/ui_android_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (6 generated)
Jaekyun Seok (inactive)
Please review this CL to upstream ResourceManager.
6 years, 1 month ago (2014-11-17 13:41:39 UTC) #2
David Trainor- moved to gerrit
Looking good! A few nits (specifically around using ResourceKind instead of ResourceType), but in general ...
6 years, 1 month ago (2014-11-18 18:53:54 UTC) #3
Jaekyun Seok (inactive)
https://chromiumcodereview.appspot.com/731133002/diff/80001/content/browser/android/resource_manager_impl.cc File content/browser/android/resource_manager_impl.cc (right): https://chromiumcodereview.appspot.com/731133002/diff/80001/content/browser/android/resource_manager_impl.cc#newcode36 content/browser/android/resource_manager_impl.cc:36: return gfx::Rect(aperture.x() * left_scale, aperture.y() * top_scale, On 2014/11/18 ...
6 years, 1 month ago (2014-11-18 23:34:02 UTC) #4
Jaekyun Seok (inactive)
Please review this CL. This change is to upstream ResourceManager and expose it through Compositor. ...
6 years, 1 month ago (2014-11-18 23:40:25 UTC) #6
jdduke (slow)
Yay! https://chromiumcodereview.appspot.com/731133002/diff/100001/content/browser/android/resource_manager_impl.h File content/browser/android/resource_manager_impl.h (right): https://chromiumcodereview.appspot.com/731133002/diff/100001/content/browser/android/resource_manager_impl.h#newcode27 content/browser/android/resource_manager_impl.h:27: virtual ~ResourceManagerImpl(); Nit: ~ResourceManagerImpl() override; https://chromiumcodereview.appspot.com/731133002/diff/100001/content/browser/android/ui_resource_android_impl.h File content/browser/android/ui_resource_android_impl.h ...
6 years, 1 month ago (2014-11-19 00:09:16 UTC) #7
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/731133002/diff/80001/content/public/browser/android/resource_manager.h File content/public/browser/android/resource_manager.h (right): https://chromiumcodereview.appspot.com/731133002/diff/80001/content/public/browser/android/resource_manager.h#newcode25 content/public/browser/android/resource_manager.h:25: enum ResourceKind { On 2014/11/18 23:34:02, Jaekyun Seok wrote: ...
6 years, 1 month ago (2014-11-19 00:47:53 UTC) #8
Jaekyun Seok (inactive)
PTAL. https://chromiumcodereview.appspot.com/731133002/diff/80001/content/public/browser/android/resource_manager.h File content/public/browser/android/resource_manager.h (right): https://chromiumcodereview.appspot.com/731133002/diff/80001/content/public/browser/android/resource_manager.h#newcode25 content/public/browser/android/resource_manager.h:25: enum ResourceKind { On 2014/11/19 00:47:53, David Trainor ...
6 years, 1 month ago (2014-11-19 02:41:38 UTC) #9
mkosiba (inactive)
android_webview/ LGTM
6 years, 1 month ago (2014-11-19 09:39:41 UTC) #10
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/731133002/diff/140001/content/public/android/java/src/org/chromium/content_public/resources/ResourceManager.java File content/public/android/java/src/org/chromium/content_public/resources/ResourceManager.java (right): https://chromiumcodereview.appspot.com/731133002/diff/140001/content/public/android/java/src/org/chromium/content_public/resources/ResourceManager.java#newcode92 content/public/android/java/src/org/chromium/content_public/resources/ResourceManager.java:92: public void preloadStaticResources(Context context, int[] syncIds, int[] asyncIds) { ...
6 years, 1 month ago (2014-11-19 17:57:19 UTC) #11
jdduke (slow)
The non-Java content/ portion lgtm with a couple nits (I'm not really an owner for ...
6 years, 1 month ago (2014-11-19 18:26:48 UTC) #12
David Trainor- moved to gerrit
Talked to tedchoc@ and he suggested moving this to ui/android/resources (ui/android/java/.../resources for the java components).
6 years, 1 month ago (2014-11-20 00:55:19 UTC) #13
Jaekyun Seok (inactive)
PTAL. I moved codes under ui/android/, but I have the following ambiguous things. 1. Is ...
6 years, 1 month ago (2014-11-21 12:35:33 UTC) #14
Jaekyun Seok (inactive)
PTAL. I fixed the clang build failure.
6 years ago (2014-11-24 08:55:29 UTC) #15
Ted C
https://codereview.chromium.org/731133002/diff/200001/ui/android/resources/resource_manager.h File ui/android/resources/resource_manager.h (right): https://codereview.chromium.org/731133002/diff/200001/ui/android/resources/resource_manager.h#newcode19 ui/android/resources/resource_manager.h:19: namespace android { Do any of the other top ...
6 years ago (2014-11-24 19:09:55 UTC) #16
Jaekyun Seok (inactive)
PTAL. https://codereview.chromium.org/731133002/diff/200001/ui/android/resources/resource_manager.h File ui/android/resources/resource_manager.h (right): https://codereview.chromium.org/731133002/diff/200001/ui/android/resources/resource_manager.h#newcode19 ui/android/resources/resource_manager.h:19: namespace android { On 2014/11/24 19:09:55, Ted C ...
6 years ago (2014-11-24 23:36:56 UTC) #17
Ted C
On 2014/11/24 23:36:56, Jaekyun Seok wrote: > PTAL. > > https://codereview.chromium.org/731133002/diff/200001/ui/android/resources/resource_manager.h > File ui/android/resources/resource_manager.h (right): ...
6 years ago (2014-11-24 23:38:18 UTC) #18
Jaekyun Seok (inactive)
Daniel, could you please review this CL, especially changes on content/*?
6 years ago (2014-11-27 01:21:08 UTC) #19
no sievers
https://codereview.chromium.org/731133002/diff/220001/ui/android/BUILD.gn File ui/android/BUILD.gn (right): https://codereview.chromium.org/731133002/diff/220001/ui/android/BUILD.gn#newcode32 ui/android/BUILD.gn:32: jni_package = "android" This is a bit too generic. ...
6 years ago (2014-12-02 00:25:07 UTC) #20
no sievers
https://codereview.chromium.org/731133002/diff/220001/ui/android/DEPS File ui/android/DEPS (right): https://codereview.chromium.org/731133002/diff/220001/ui/android/DEPS#newcode2 ui/android/DEPS:2: "+cc", Actually, even better, only allow cc/resources specifically.
6 years ago (2014-12-02 00:26:02 UTC) #21
Jaekyun Seok (inactive)
PTAL. https://codereview.chromium.org/731133002/diff/220001/ui/android/BUILD.gn File ui/android/BUILD.gn (right): https://codereview.chromium.org/731133002/diff/220001/ui/android/BUILD.gn#newcode32 ui/android/BUILD.gn:32: jni_package = "android" On 2014/12/02 00:25:06, sievers wrote: ...
6 years ago (2014-12-02 03:13:13 UTC) #22
no sievers
lgtm
6 years ago (2014-12-02 17:52:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731133002/260001
6 years ago (2014-12-02 21:14:34 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/27738)
6 years ago (2014-12-02 21:22:47 UTC) #27
Jaekyun Seok (inactive)
Dana and Brian, could you please review ui/android/DEPS as owners of dependencies added to it? ...
6 years ago (2014-12-02 21:40:00 UTC) #29
no sievers
On 2014/12/02 21:40:00, Jaekyun Seok wrote: > Dana and Brian, could you please review ui/android/DEPS ...
6 years ago (2014-12-02 22:04:44 UTC) #30
jdduke (slow)
On 2014/12/02 22:04:44, sievers wrote: > On 2014/12/02 21:40:00, Jaekyun Seok wrote: > > Dana ...
6 years ago (2014-12-02 22:06:40 UTC) #31
no sievers
On 2014/12/02 22:06:40, jdduke wrote: > On 2014/12/02 22:04:44, sievers wrote: > > On 2014/12/02 ...
6 years ago (2014-12-02 22:09:01 UTC) #32
danakj
On 2014/12/02 21:40:00, Jaekyun Seok wrote: > Dana and Brian, could you please review ui/android/DEPS ...
6 years ago (2014-12-02 23:57:19 UTC) #33
Jaekyun Seok (inactive)
> Then: > > +# for UI resources > mailto:+jaekyun@chromium.org I added David and me ...
6 years ago (2014-12-03 00:09:58 UTC) #34
Jaekyun Seok (inactive)
Brian, could you please review ui/android/DEPS as owners of skia? Thanks,
6 years ago (2014-12-04 01:16:14 UTC) #35
bsalomon
On 2014/12/04 01:16:14, Jaekyun Seok wrote: > Brian, could you please review ui/android/DEPS as owners ...
6 years ago (2014-12-04 14:56:46 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731133002/320001
6 years ago (2014-12-04 15:10:44 UTC) #38
commit-bot: I haz the power
Committed patchset #17 (id:320001)
6 years ago (2014-12-04 16:19:22 UTC) #39
commit-bot: I haz the power
6 years ago (2014-12-04 16:20:28 UTC) #40
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/d5de7e4469af397027ca13927c4426baec270d4e
Cr-Commit-Position: refs/heads/master@{#306830}

Powered by Google App Engine
This is Rietveld 408576698