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

Issue 895843002: Content: Add convenience method for animations over SurfaceViews. (Closed)

Created:
5 years, 10 months ago by epenner
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Content: Add convenience method for animations over SurfaceViews. By default, Android optimizes what it shows on top of SurfaceViews (saves power). Effectively, layouts determine what gets drawn and post-layout animations outside of this area may be 'clipped'. This adds an convenient way to avoid this clipping. When an animation wishes to animate over a SurfaceView, it just needs to register itself in its ContentViewCore and the rest will be taken care of automatically. BUG=441805 Committed: https://crrev.com/428058320be722fbfba3a61c81108a27f216b36c Cr-Commit-Position: refs/heads/master@{#315164}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Comments. #

Patch Set 4 : Comments. #

Total comments: 10

Patch Set 5 : Address feedback. #

Patch Set 6 : Use isEmpty() #

Patch Set 7 : Use nullity to create view. #

Patch Set 8 : Rebase. #

Total comments: 5

Patch Set 9 : Address feedback. #

Patch Set 10 : Move into WindowAndroid #

Patch Set 11 : Comments. #

Patch Set 12 : Comments. #

Patch Set 13 : Rebase. #

Messages

Total messages: 21 (5 generated)
epenner
Ptal. This makes it a lot easier than tweaking animation positions by one pixel etc. ...
5 years, 10 months ago (2015-02-03 01:29:13 UTC) #2
epenner
On 2015/02/03 01:29:13, epenner wrote: > Ptal. This makes it a lot easier than tweaking ...
5 years, 10 months ago (2015-02-04 23:30:31 UTC) #3
Ted C
https://codereview.chromium.org/895843002/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/895843002/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3011 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3011: private HashSet<Animator> mAnimationsOverContent = new HashSet<Animator>(); put these up ...
5 years, 10 months ago (2015-02-05 00:49:55 UTC) #4
David Trainor- moved to gerrit
I'm okay with this (pending Ted's nits). My only request would be to make sure ...
5 years, 10 months ago (2015-02-05 01:16:57 UTC) #5
epennerAtGoogle
https://codereview.chromium.org/895843002/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/895843002/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3011 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3011: private HashSet<Animator> mAnimationsOverContent = new HashSet<Animator>(); On 2015/02/05 00:49:54, ...
5 years, 10 months ago (2015-02-05 02:13:35 UTC) #7
epennerAtGoogle
On 2015/02/05 01:16:57, David Trainor wrote: > I'm okay with this (pending Ted's nits). My ...
5 years, 10 months ago (2015-02-05 02:44:07 UTC) #8
Ted C
lgtm https://codereview.chromium.org/895843002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/895843002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3019 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3019: if (!animation.isStarted()) throw new IllegalArgumentException("Must be started."); I ...
5 years, 10 months ago (2015-02-05 17:59:05 UTC) #9
David Trainor- moved to gerrit
I'm starting to wonder if this is the right place for this. ContentViewCore doesn't have ...
5 years, 10 months ago (2015-02-05 18:52:07 UTC) #10
epennerAtGoogle
> I'm starting to wonder if this is the right place for > this. ContentViewCore ...
5 years, 10 months ago (2015-02-05 21:08:30 UTC) #12
epenner
Okay, after talking to David we decided the best place for this was in WindowAndroid. ...
5 years, 10 months ago (2015-02-06 03:12:25 UTC) #13
David Trainor- moved to gerrit
lgtm
5 years, 10 months ago (2015-02-06 22:16:06 UTC) #14
epennerAtGoogle
Just heads up for one more review. Mostly a code move to WindowAndroid, but also ...
5 years, 10 months ago (2015-02-06 22:26:37 UTC) #16
epennerAtGoogle
Ah, got David's now. Going once, going twice...
5 years, 10 months ago (2015-02-06 22:28:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895843002/240001
5 years, 10 months ago (2015-02-07 01:29:23 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 10 months ago (2015-02-07 02:38:11 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-07 02:38:49 UTC) #21
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/428058320be722fbfba3a61c81108a27f216b36c
Cr-Commit-Position: refs/heads/master@{#315164}

Powered by Google App Engine
This is Rietveld 408576698