3485 Commits

Author SHA1 Message Date
Doris Liu
eba351df16 Ensure layer update include the dirty rect from AVD am: b51b2864e8 am: c0dccb9597
am: 334d32137f

Change-Id: I20bf02209a269d6bef3085ae07caade7680b065d
2016-08-03 19:46:26 +00:00
John Reck
d298aff715 Fix RNA crash am: d58230c7f7
am: cb3cf9e385

Change-Id: If3e79b4593c8f1edf06f1b7e16e16a727c1a28b8
2016-08-03 19:15:34 +00:00
John Reck
d58230c7f7 Fix RNA crash
Bug: 30632377
Change-Id: I5d53fba0f469553ae90bebad1482ef28965dd853
2016-08-03 10:28:10 -07:00
Matt Sarett
29c32cd2d5 Remove unused include SkNinePatch.h
Change-Id: I4c34d21633fd4f3d4b1403e3bb473dc2cbd245cd
2016-08-03 13:36:34 +00:00
Doris Liu
334d32137f Ensure layer update include the dirty rect from AVD am: b51b2864e8
am: c0dccb9597

Change-Id: Ic18f7fde55b86aa4789b86188784d35d39a5c73a
2016-08-02 20:49:53 +00:00
Doris Liu
c0dccb9597 Ensure layer update include the dirty rect from AVD
am: b51b2864e8

Change-Id: Ic8b6d70e9913205b4c34023ae10025171cb07311
2016-08-02 20:42:31 +00:00
Doris Liu
a3c35852a1 Merge "Ensure layer update include the dirty rect from AVD" into nyc-mr1-dev 2016-08-02 20:36:20 +00:00
Doris Liu
2e729ebf5f Put VD animators on paused list when RT stops drawing am: c82e879e56 am: 70b6080cd7
am: 4ec05be535

Change-Id: I22e66e33aa51064230351f1fd24e5fb200511213
2016-08-02 18:32:18 +00:00
John Reck
a25e710181 Fix FrameMetricsObserver crash am: 65ddb154c7 am: 6e30f4c789
am: c7a8458205

Change-Id: If95aff273d4a32a7434042a13b8d373276f05d6a
2016-08-02 18:32:12 +00:00
Doris Liu
4ec05be535 Put VD animators on paused list when RT stops drawing am: c82e879e56
am: 70b6080cd7

Change-Id: I2ad721d1e9a20e5a1946a779ac0e84118b017505
2016-08-02 18:24:42 +00:00
John Reck
c7a8458205 Fix FrameMetricsObserver crash am: 65ddb154c7
am: 6e30f4c789

Change-Id: Ic1bc80f8bbd20ce73f9e32c3a7457ad876c28476
2016-08-02 18:24:34 +00:00
Doris Liu
70b6080cd7 Put VD animators on paused list when RT stops drawing
am: c82e879e56

Change-Id: I9f0202c8e69e681014253842b2a2de75d372616b
2016-08-02 18:15:44 +00:00
Doris Liu
0cf4d47a40 Merge "Put VD animators on paused list when RT stops drawing" into nyc-mr1-dev 2016-08-02 18:08:05 +00:00
John Reck
65ddb154c7 Fix FrameMetricsObserver crash
Bug: 30587465

Someday maybe the technology will exist to
allow sharing a simple constant between
Java and C++, but today is not that day.

Change-Id: I17694746cb8712058133cd5ea10c47b9909f740b
2016-08-02 09:38:26 -07:00
Doris Liu
b51b2864e8 Ensure layer update include the dirty rect from AVD
BUG: 30166063
Change-Id: Ia14a2fe3c653e0172a28b4ef22f5171ccf7390c1
2016-08-02 03:01:48 +00:00
John Reck
8b9a1fa084 Eliminate recents upload jank am: 4387190d8e am: 021a952150
am: 897b9effb7

Change-Id: Iab2f01b5b3a9be6946e36169209c281a3320ed14
2016-08-02 02:57:27 +00:00
John Reck
56f9ccfa15 Fix null deref crash am: 882d515cd5 am: ed93e111c5
am: 86e700ebc9

Change-Id: I97412741a5f41fa0c5bec56795cf7f7b8875f738
2016-08-02 02:23:48 +00:00
John Reck
897b9effb7 Eliminate recents upload jank am: 4387190d8e
am: 021a952150

Change-Id: I9715db27b6ea265c180f56297815b7240368231f
2016-08-02 01:27:40 +00:00
John Reck
021a952150 Eliminate recents upload jank
am: 4387190d8e

Change-Id: I40fd49a61dde974c4215c4ccf9676f84cb3f43a7
2016-08-02 01:20:51 +00:00
TreeHugger Robot
e733f862f0 Merge "Eliminate recents upload jank" into nyc-mr1-dev 2016-08-02 01:07:19 +00:00
John Reck
4387190d8e Eliminate recents upload jank
Bug: 30342017

Upload recents thumbnails in the
dead gaps between frames instead of
at the start of a frame. This eliminates
jank caused by the large texture
upload.

Change-Id: I507cd286d199109c7a9a1511d68ba5ab5d28069f
2016-08-01 16:36:14 -07:00
John Reck
86e700ebc9 Fix null deref crash am: 882d515cd5
am: ed93e111c5

Change-Id: Ie1ce80145beb803f18118a64ac3be98ad77e3228
2016-08-01 22:16:32 +00:00
John Reck
882d515cd5 Fix null deref crash
Bug: 30560152
Change-Id: Ic4bae380e27de5bea80cec484e83d205e078ec43
2016-08-01 14:52:25 -07:00
Doris Liu
c82e879e56 Put VD animators on paused list when RT stops drawing
When we stop scheduling for new frames on RenderThread, we should
put the running animations on pause, rather than purge the list
of the running animations, such that in the next full
sync, the animations that were paused will continue to run.

BUG: 30226711
Change-Id: I36ff6f5d26ffa7999f60ca0ff676a35157577dc2
2016-08-01 21:42:15 +00:00
Hugo Benichi
63d8aa930f Merge \\\"Fix missing IpConnectivity metrics\\\" into nyc-mr1-dev am: 66e7752ad1 am: b2db402899
am: fb5c675b7e

Change-Id: Iba1f81a892acd9f541b9dd564203bfebc56c9c73
2016-07-31 02:13:00 +00:00
John Reck
fb5c675b7e resolve merge conflicts of 67daab6 to nyc-mr1-dev-plus-aosp
Change-Id: I35f867b8d6408a7eae9cf5643f0908259de90cb1
2016-07-29 10:08:16 -07:00
John Reck
67daab6a1e Teach JankTracker about new swap behaviors
am: 2d5b8d7392

Change-Id: I28afc748f8a43944863bd752c3bd2cb983d19c23
2016-07-29 16:31:38 +00:00
TreeHugger Robot
34921ac110 Merge "Teach JankTracker about new swap behaviors" into nyc-mr1-dev 2016-07-29 16:25:51 +00:00
John Reck
b5405b171c Drop less aggressively am: a3d795a34a am: 62ec371a9e
am: fd6bf88724

Change-Id: I4a6bd075a1989b942c2531048d5d5335a24874f4
2016-07-29 16:10:15 +00:00
John Reck
2d5b8d7392 Teach JankTracker about new swap behaviors
Bug: 30440166

If we are using HWC2, there's a change in timing
when in triple buffering with the pipelined offsets.
This changes JankTracker to recognize that and silently
erase that from the total duration

Change-Id: Ib1fd4209070f17dbd2baed707c8cf73fb11c3cf2
2016-07-29 07:56:02 -07:00
TreeHugger Robot
7e03ffa772 Merge "Use Canvas::create_recording_canvas instead of RecordingCanvas ctor" 2016-07-28 23:49:37 +00:00
Doris Liu
2c02aa1e02 Run animation *after* property sync am: 7c7052dd9b am: 0053b066e5
am: c82ef8a51f

Change-Id: I06962e8d068b3d005b4cd4ce38a4028abab3333b
2016-07-28 23:19:37 +00:00
Stan Iliev
06152cdd06 Use Canvas::create_recording_canvas instead of RecordingCanvas ctor
Modify HWUI tests to support different recording canvases. Delete
TestCanvas class and use base Canvas class instead. Use
Canvas::create_recording_canvas to create recording canvas instances
instead of RecordingCanvas constructor.

Change-Id: I651fb9bb4add0874d7110bac467a2eb1012357fc
2016-07-28 18:23:36 -04:00
John Reck
fd6bf88724 Drop less aggressively am: a3d795a34a
am: 62ec371a9e

Change-Id: Ifd9329e071f9391c5a5ced79301aee5410eff6d4
2016-07-28 20:20:52 +00:00
John Reck
62ec371a9e Drop less aggressively
am: a3d795a34a

Change-Id: I8cb55e8778fd9f9b5e5486b69d1bae490b02f823
2016-07-28 20:10:52 +00:00
John Reck
abf66de147 Merge "Drop less aggressively" into nyc-mr1-dev 2016-07-28 19:59:13 +00:00
Stan Iliev
6c2c0770a8 Merge "Delete dead code function SpotShadow::makeClockwise" 2016-07-28 13:06:46 +00:00
John Reck
a3d795a34a Drop less aggressively
Bug: 30342762

Frame dropping was too frequent and would trigger
during normal triple buffering steady state. Bump
the threshold to drop from 3ms stall to 6ms stall.

Change-Id: I5c1faeaabf0d02323a28e697a4af4105fbcf1c53
2016-07-27 19:28:05 -07:00
Doris Liu
c82ef8a51f Run animation *after* property sync am: 7c7052dd9b
am: 0053b066e5

Change-Id: Id9764477eec3ee13044b60c1b02b8b0b459b7761
2016-07-27 22:48:04 +00:00
Stan Iliev
fdb625a309 Delete dead code function SpotShadow::makeClockwise
Delete SpotShadow::makeClockwise, which is unused and does
not link when compiler optimizations are disabled (for debugging).
SpotShadow::makeClockwise calls non-existent function
ShadowTessellator::isClockwise, which only works because the
optimizer deletes the function.

Change-Id: Ib8a014bf168782772faa1da7d75a079c1fd28ed9
2016-07-27 18:08:06 -04:00
Doris Liu
0053b066e5 Run animation *after* property sync
am: 7c7052dd9b

Change-Id: I68e050a18c46e60d7ed8fa5ef6a92df1a52d343e
2016-07-27 22:00:36 +00:00
Chris Craik
919645aded Reject fully transparent paint-fill ops at record time am: 814ee6a921
am: 1cfc4b1f46

Change-Id: I0d04b00ccf3d109ea5ab55ba52122fd4506147ea
2016-07-27 21:34:09 +00:00
Chris Craik
1cfc4b1f46 Reject fully transparent paint-fill ops at record time
am: 814ee6a921

Change-Id: Ie38ec468acf7ad30108f1279185f5a4b646b6f45
2016-07-27 21:17:28 +00:00
Doris Liu
aa54b4e0da Merge "Run animation *after* property sync" into nyc-mr1-dev 2016-07-27 21:14:12 +00:00
Chris Craik
004d140042 Merge "Reject fully transparent paint-fill ops at record time" into nyc-mr1-dev 2016-07-27 16:37:37 +00:00
Chris Craik
814ee6a921 Reject fully transparent paint-fill ops at record time
bug:30342762

Avoids unnecessary work for each transparent operation.

Change-Id: I80b1eeca34ae32249433fde55e9fe93d02c411db
2016-07-26 16:22:51 -07:00
Derek Sollenberger
56ad6ec42f Remove LayerRenderer.
There is only one caller each for the static functions here so this
CL moves the logic to the caller.  Also by moving some of the code
into the pipeline it makes it easier for future changes to configure
how a pipeline handles a layer.

Change-Id: Ib735b5154325cbb658fd151f7a19dbf434ab44b7
2016-07-26 13:05:13 -04:00
Derek Sollenberger
8d91725d6c Merge "Remove unused member variable from DeviceInfo." 2016-07-26 12:07:48 +00:00
Doris Liu
7c7052dd9b Run animation *after* property sync
VectorDrawable contains properties that can be mofidied from both
UI thread and RenderThread. The two sets of properties are synced
during prepareTree. Previously VD animations ran before prepareTree,
as a result, during prepareTree the property sync overwrote some
of the animatable properties. In other words, the first frame of
the animation wasn't correct. An example is in battery saver mode
when the animation only has one frame to animate (0-duration), the
end result looked wrong.

This CL moves the VD animation to after prepareTree to solve the
problem mentioned above. Meanwhile, in order to signal which
VD will be animated so as to have them properly damaged, all VDs
with running animators are marked dirty.

Bug: 30226711
Change-Id: I831dae9abb2908876c935b9be4c11dfd09452d5c
2016-07-26 00:42:56 +00:00
Stan Iliev
2b2c7f1e4e Merge "Fix bound rectangle calculation in SkiaCanvasProxy::onDrawPosText" 2016-07-25 21:22:51 +00:00