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

Issue 422013003: [Android] Use UIResource for overscroll glow (Closed)

Created:
6 years, 4 months ago by jdduke (slow)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, miu+watch_chromium.org, nona+watch_chromium.org, penghuang+watch_chromium.org, James Su, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Use UIResource for overscroll glow Introduce a SystemUIResourceManager class for loading and providing access to shared UIResourceId's. Wire this class to the existing OverscrollGlow effect, using the shared id's with a UIResourceLayer for both glow and edge layers. This patch is a subset of powei@'s original SystemUIResource patch found at https://codereview.chromium.org/377013002/. BUG=326326 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288095

Patch Set 1 #

Total comments: 2

Patch Set 2 : Hook up PreloadResource to OverscrollGlow #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Remove unnecessary layer disabling code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+602 lines, -185 lines) Patch
M content/browser/android/edge_effect.h View 1 6 chunks +14 lines, -6 lines 0 comments Download
M content/browser/android/edge_effect.cc View 1 2 3 4 5 chunks +86 lines, -53 lines 0 comments Download
M content/browser/android/overscroll_glow.h View 4 chunks +9 lines, -8 lines 0 comments Download
M content/browser/android/overscroll_glow.cc View 1 5 chunks +15 lines, -82 lines 0 comments Download
A content/browser/android/system_ui_resource_manager_impl.h View 1 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/android/system_ui_resource_manager_impl.cc View 1 1 chunk +137 lines, -0 lines 0 comments Download
A content/browser/android/system_ui_resource_manager_impl_unittest.cc View 1 1 chunk +167 lines, -0 lines 0 comments Download
M content/browser/android/ui_resource_provider_impl.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/android/ui_resource_provider_impl.cc View 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 4 chunks +2 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 9 chunks +27 lines, -11 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A ui/base/android/system_ui_resource_manager.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M ui/base/android/window_android_compositor.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/android/java_bitmap.h View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/gfx/android/java_bitmap.cc View 3 chunks +21 lines, -11 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
jdduke (slow)
aelias@, powei@: I managed to re-use much of the original patch, replacing the subscription model ...
6 years, 4 months ago (2014-07-31 16:27:44 UTC) #1
powei
lgtm with one question. Thanks for picking this up! https://codereview.chromium.org/422013003/diff/1/ui/base/android/system_ui_resource_manager.h File ui/base/android/system_ui_resource_manager.h (right): https://codereview.chromium.org/422013003/diff/1/ui/base/android/system_ui_resource_manager.h#newcode25 ui/base/android/system_ui_resource_manager.h:25: ...
6 years, 4 months ago (2014-07-31 17:24:28 UTC) #2
jdduke (slow)
https://codereview.chromium.org/422013003/diff/1/ui/base/android/system_ui_resource_manager.h File ui/base/android/system_ui_resource_manager.h (right): https://codereview.chromium.org/422013003/diff/1/ui/base/android/system_ui_resource_manager.h#newcode25 ui/base/android/system_ui_resource_manager.h:25: virtual void EnsureResource(ResourceType resource) = 0; On 2014/07/31 17:24:28, ...
6 years, 4 months ago (2014-07-31 17:40:57 UTC) #3
jdduke (slow)
On 2014/07/31 17:40:57, jdduke wrote: > Maybe I'll add calls to this when the OverscrollGlow ...
6 years, 4 months ago (2014-07-31 18:06:29 UTC) #4
powei
On 2014/07/31 18:06:29, jdduke wrote: > On 2014/07/31 17:40:57, jdduke wrote: > > Maybe I'll ...
6 years, 4 months ago (2014-07-31 19:04:18 UTC) #5
jdduke (slow)
aelias@: Anything else you'd like to see from this patch?
6 years, 4 months ago (2014-08-06 23:06:18 UTC) #6
aelias_OOO_until_Jul13
lgtm modulo minor comment https://codereview.chromium.org/422013003/diff/60001/content/browser/android/edge_effect.cc File content/browser/android/edge_effect.cc (right): https://codereview.chromium.org/422013003/diff/60001/content/browser/android/edge_effect.cc#newcode144 content/browser/android/edge_effect.cc:144: ui_resource_layer_->SetTransform(gfx::Transform()); Are these two lines ...
6 years, 4 months ago (2014-08-06 23:18:55 UTC) #7
jdduke (slow)
yfriedman@: OWNER review for ui/base/android? Thanks. https://codereview.chromium.org/422013003/diff/60001/content/browser/android/edge_effect.cc File content/browser/android/edge_effect.cc (right): https://codereview.chromium.org/422013003/diff/60001/content/browser/android/edge_effect.cc#newcode144 content/browser/android/edge_effect.cc:144: ui_resource_layer_->SetTransform(gfx::Transform()); On 2014/08/06 ...
6 years, 4 months ago (2014-08-06 23:30:18 UTC) #8
Yaron
lgtm
6 years, 4 months ago (2014-08-06 23:39:12 UTC) #9
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-06 23:45:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/422013003/80001
6 years, 4 months ago (2014-08-06 23:48:52 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-07 05:00:26 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 05:03:50 UTC) #13
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/2533)
6 years, 4 months ago (2014-08-07 05:03:51 UTC) #14
jdduke (slow)
sky@: Owner review for ui/base/BUILD.gn and ui/base/ui_base.gyp? I must have been confused by the per-file ...
6 years, 4 months ago (2014-08-07 13:44:43 UTC) #15
sky
Said files LGTM
6 years, 4 months ago (2014-08-07 16:22:49 UTC) #16
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-07 17:29:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/422013003/80001
6 years, 4 months ago (2014-08-07 17:35:33 UTC) #18
commit-bot: I haz the power
Change committed as 288095
6 years, 4 months ago (2014-08-07 17:51:30 UTC) #19
Miguel Garcia
A revert of this CL has been created in https://codereview.chromium.org/454863003/ by miguelg@chromium.org. The reason for ...
6 years, 4 months ago (2014-08-08 10:57:13 UTC) #20
jdduke (slow)
On 2014/08/08 10:57:13, Miguel Garcia wrote: > See an example of a failed run in ...
6 years, 4 months ago (2014-08-08 16:47:48 UTC) #21
Yaron
On Fri, Aug 8, 2014 at 9:47 AM, <jdduke@chromium.org> wrote: > On 2014/08/08 10:57:13, Miguel ...
6 years, 4 months ago (2014-08-08 17:39:50 UTC) #22
chromium-reviews
6 years, 4 months ago (2014-08-08 18:34:18 UTC) #23
Ack. This behavior change was introduced in recipe 1.5. I'll fix it now.


On Fri, Aug 8, 2014 at 10:39 AM, Yaron Friedman <yfriedman@chromium.org>
wrote:

>
>
>
> On Fri, Aug 8, 2014 at 9:47 AM, <jdduke@chromium.org> wrote:
>
>> On 2014/08/08 10:57:13, Miguel Garcia wrote:
>>
>>>      See an example of a failed run in
>>>
>>
>>
>> https://uberchromegw.corp.google.com/i/clank.tot/
>> builders/instrumentation-yakju-clankium-tot/builds/32007
>>
>>       (but just trying to boot clank with this patch will trigger it)
>>> .
>>>
>>
>> Is there a log for the instrumentation-yakju-clankium-tot failure? That
>> test
>> didn't start failing until a few revisions after my patch on ToT.  I'm
>> also not
>> able to repro the DCHECK using a GN/N4/N7 on 4.1/4.4/L.
>>
>
> +zty. This seems like a bug with the build scripts. Even if the tests
> fail, the scripts should keep going so we can see the logcat
>
>>
>> https://codereview.chromium.org/422013003/
>>
>
>


-- 
Remember patience, discipline.

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698