Teng-Hui Zhu
4c6edb0a3c
Recreate the bitmap cache when it is smaller than needed
...
am: 17f40b80f6
Change-Id: I057156b0f70c89ef1cd4b89237dc0c3b2146d0fa
2016-12-07 18:59:58 +00:00
Mike Reed
6e49c9f007
switch over clip calls to use SkClipOp instead of SkRegion::Op
...
Change-Id: I67d23c487b5249bc31d96e3b2393f693c0b2bcff
2016-12-07 10:34:39 -05:00
Hal Canary
10219fb261
SkImageEncoder->SkEncodeImage
...
Test: none
Change-Id: I15630d2852d12840329181f135852e28d287bbcf
(cherry picked from commit 8c6bac4c77caeefb667bec90d16b5384fd2b2b31)
2016-12-07 13:29:42 +00:00
Teng-Hui Zhu
17f40b80f6
Recreate the bitmap cache when it is smaller than needed
...
fix:32780212
Test: Existing CTS and attached repro apk.
Change-Id: Ib908319af6539b2438b850f7a50d5a539cef8368
2016-12-02 15:29:44 -08:00
Tenghui Zhu
f2237741c3
Merge "Recreate the bitmap cache when it is smaller than needed"
2016-12-02 23:16:37 +00:00
TreeHugger Robot
4a3818ddd3
Merge "Fix a crash in skia pipeline, when empty reorder block is first"
2016-12-01 21:36:01 +00:00
TreeHugger Robot
e9bf7c8436
Merge "Introduce PathInterpolator to native animators"
2016-12-01 20:21:13 +00:00
TreeHugger Robot
54f67e781f
Merge changes from topic 'glbytebuffer'
...
* changes:
Query GL version before using it
Guarantee that glMapBufferRange/glGetBufferPointv return a ByteBuffer
2016-12-01 19:42:17 +00:00
Romain Guy
b136c8556e
Query GL version before using it
...
Bug: 32984164
Test: manual testing of linear blending
Change-Id: Ie20bdc34d1b98e93eae22b15f3e2a7994d3b4ff7
2016-12-01 09:50:49 -08:00
Stan Iliev
347691f8d8
Fix a crash in skia pipeline, when empty reorder block is first
...
Fix a crash in skia pipeline, which happens if an empty reorder
barrier is inserted at index 0 in a SkiaDisplayList.
Add a unit test that repro the bug (unit test is crashing wihtout
the fix and passing with the fix).
Test: built and ran skia pipeline with angler-eng and run HWUI unit
tests.
Change-Id: I4aded15021c70cc0ae8daa83bbe8ed0e10a41eef
2016-12-01 12:25:07 -05:00
TreeHugger Robot
6c670ecdd9
Merge "Add hwui test for correct refcounting of SkColorTable in Bitmap"
2016-12-01 03:35:51 +00:00
Doris Liu
8a5a950ac0
Fix LUTInterpolator lookup table position calc am: 0940834c8c
...
am: 00d348ec26
Change-Id: I563b65b61d3bac80ea81521478e295963508890c
2016-12-01 01:39:23 +00:00
Doris Liu
00d348ec26
Fix LUTInterpolator lookup table position calc
...
am: 0940834c8c
Change-Id: Ib80c00801473d7e60bae87b3b34a381c7f8e7e68
2016-12-01 01:33:52 +00:00
Doris Liu
9e9eeeeb78
Introduce PathInterpolator to native animators
...
For interpolators defined with a path, PathInterpolator is more accurate
and likely less costly for longer animations than what are currently
using as a substiute - LUTInterpolator.
Test: manual test and added a unit test
BUG: 32830741
Change-Id: I867c7a28e4261392cce9c45a2992ab4fd120c496
2016-11-30 16:03:23 -08:00
Doris Liu
0940834c8c
Fix LUTInterpolator lookup table position calc
...
BUG: 32830741
Test: running progress bar at 5x duration scale, no flickering
Change-Id: Ie484bdbfdf18bacc4586e36c5142e4523d08bdaa
2016-11-30 23:20:19 +00:00
sergeyv
71c4477bee
Add hwui test for correct refcounting of SkColorTable in Bitmap
...
Test: BitmapTests.colorTableRefCounting
bug:32561595
Change-Id: I505c735feffbac18d406b6b2f9dff51d81700cd8
2016-11-30 13:42:52 -08:00
Sergei Vasilinetc
c1e6a12ab5
Merge "Add createHardwareBitmap on GraphicBuffer for SysUI"
2016-11-30 20:53:43 +00:00
sergeyv
9a02987642
Add createHardwareBitmap on GraphicBuffer for SysUI
...
Test: none
bug:30999911
Change-Id: Ic396e25d9e587665e634c3192e14ef4bc3dc78f7
2016-11-30 10:47:12 -08:00
Matt Sarett
711b6aec9a
Merge "Add overdraw debugging feature to Skia pipelines"
2016-11-30 16:51:24 +00:00
Matt Sarett
f58cc92066
Add overdraw debugging feature to Skia pipelines
...
Test: Compared to OpenGL pipeline and sanity checked
with understanding of the drawing pipeline. Also
wrote a unit test.
BUG:32370375
Change-Id: Iab397d21f0def725fa89551d48c764c67fd2bda8
2016-11-29 18:03:40 -05:00
TreeHugger Robot
d738d1beab
Merge "Fix hwui compile error only seen with debug switch."
2016-11-29 17:22:42 +00:00
Mike Reed
338da9c8f9
Merge "SkCanvas is no longer reference-counted"
2016-11-29 14:52:49 +00:00
Daichi Hirono
116c376c73
Fix hwui compile error only seen with debug switch.
...
Bug: None
Test: Build succeeded
Change-Id: I26e3f4fdc10f27d7eb7f3987d0f3e5dfa1bc9f45
2016-11-29 16:09:59 +09:00
Stan Iliev
88e0891f66
Fix draw order for non-RenderNode draw commands
...
Fix a drawing order issue in Skia pipeline. Add unit test in both
HWUI and Skia to test the fix.
Test: built and ran on angler-eng and HWUI unit tests passed.
Bug: 32506749
Change-Id: I7f13457726a8664f18a46aca2279b876acec2944
2016-11-28 15:14:42 -05:00
Mike Reed
6acfe16b56
SkCanvas is no longer reference-counted
...
Change-Id: Ie821efe7c0a7d1301715e303aaf4d7ec86ac35e7
2016-11-28 15:11:22 -05:00
Stan Iliev
db45a4bfaf
Fix Skia render node projection to match HWUI
...
Fix Skia render node projection to match HWUI. Port
FrameBuilderTests_projectionReorder test for Skia pipeline.
Add new tests in both HWUI and Skia to cover more projection
use cases.
Test: built and run on angler-eng
Change-Id: Ibf27af211452ae95d595aca7723ea63f48b0b282
2016-11-22 16:38:20 -05:00
TreeHugger Robot
57624d1f2e
Merge "Support readback from hardware bitmaps"
2016-11-18 20:39:24 +00:00
sergeyv
59eecb526a
Support readback from hardware bitmaps
...
Test: hwuimacro readbackFromHBitmap --onscreen.
bug:30999911
Change-Id: I369c069c40cb0f9adae5a94501815f29c2d7df0f
2016-11-18 10:49:27 -08:00
Seigo Nonaka
b2db159148
Merge "Remove obsolete interface GetTable."
2016-11-18 02:17:31 +00:00
John Reck
91d1bbce59
Merge "Avoid starving RT anims" am: f77c220aa9
...
am: 7269372d5f
Change-Id: Ife1e7ea95055d8179b4a622dc4dabce382575b5b
2016-11-18 00:28:54 +00:00
John Reck
7269372d5f
Merge "Avoid starving RT anims"
...
am: f77c220aa9
Change-Id: I3d4ba24ae0e6de4683d47163fd8f3bf65b98bd17
2016-11-18 00:14:05 +00:00
Treehugger Robot
f77c220aa9
Merge "Avoid starving RT anims"
2016-11-17 23:53:00 +00:00
John Reck
a5b7b89166
Avoid starving RT anims
...
Test: Manual, usleep(16000) in DrawFrameTask and tap
on recents
Merged-In: I88bb30a2503bc908ec45650c7d36b6fb3cc750d0
Change-Id: I88bb30a2503bc908ec45650c7d36b6fb3cc750d0
2016-11-17 22:05:22 +00:00
John Reck
769ccdbc1e
Merge "Avoid starving RT anims"
2016-11-17 22:03:18 +00:00
Derek Sollenberger
e92d4045eb
Merge "Update pinImages to report when GPU resource limits are exceeded."
2016-11-17 19:08:50 +00:00
TreeHugger Robot
6acb4efca3
Merge "Support Surface and Layer Readback in the SkiaPipelines."
2016-11-17 16:17:59 +00:00
Derek Sollenberger
189e87498f
Update pinImages to report when GPU resource limits are exceeded.
...
Bug: 32691999
Test: proposed CTS test (ag/1500396) and existing UiRendering tests
Change-Id: I190f888ae5499ac048569af8256fdd31d19d1285
2016-11-17 09:56:53 -05:00
Seigo Nonaka
b7e33a0984
Remove obsolete interface GetTable.
...
GetTable is only used in test.
To use production interface, need to pass the raw buffer and size to the
MinikinSkia. This CL does not change any production behaviors.
Test: ran hwui microbench, macrobench, hwui_unit_tests
Change-Id: Ia657a0d061984d705f333ed3944effb1eba8ca4d
2016-11-17 18:26:41 +09:00
Seigo Nonaka
1a625911a2
Merge "Add wordSpacing parameter to Paint"
2016-11-17 08:00:01 +00:00
TreeHugger Robot
c4428c1e1a
Merge "Add layer updates debugging feature to Skia pipelines"
2016-11-16 22:13:45 +00:00
Teng-Hui Zhu
037fc1815b
Recreate the bitmap cache when it is smaller than needed
...
fix:32780212
Test: Existing CTS and attached repro apk.
Change-Id: Ib908319af6539b2438b850f7a50d5a539cef8368
2016-11-16 13:01:02 -08:00
Matt Sarett
79756be175
Add layer updates debugging feature to Skia pipelines
...
When this property is turned on, we flash green
every time a hardware layer is updated.
Test: Matches the behavior in OpenGLPipeline
BUG:32370375
Change-Id: I916f94eee644c185d8a3f9fa4cd69e087ed1e92d
2016-11-16 15:17:04 -05:00
Derek Sollenberger
c4fbada76a
Support Surface and Layer Readback in the SkiaPipelines.
...
Test: CTS TextureViewTests and UIRendering
Change-Id: I2969c8f5a975bfd9aebcbb585c64d1fcbb2487c2
2016-11-16 13:30:00 -05:00
Sergei Vasilinetc
5e3935eca2
Merge "Support hardware bitmaps in bitmap shaders"
2016-11-16 17:43:09 +00:00
Martijn Coenen
7b4d850187
Fix call to deprecated range_x().
...
Test: master builds again.
Change-Id: I0fa7627c7ec28317dd7e37cca93d2b2c90e6d1ea
2016-11-16 11:33:37 +01:00
Martijn Coenen
bbec302fcf
Merge "Fix deprecated range_x calls." am: 87cafe8f33 am: d03b17c29a am: 6e2c276c78
...
am: f4a0f12eb7
Change-Id: Ifdec08542102cf4eba2aa9baf206272523b56894
2016-11-16 10:30:15 +00:00
Martijn Coenen
6e2c276c78
Merge "Fix deprecated range_x calls." am: 87cafe8f33
...
am: d03b17c29a
Change-Id: I70280eb85b9430c23f6b2681375cbcfa9da2dd38
2016-11-16 10:07:54 +00:00
Martijn Coenen
d03b17c29a
Merge "Fix deprecated range_x calls."
...
am: 87cafe8f33
Change-Id: Idfbc4e3475cea7e56b3ac72afd61e1e981ef4e5d
2016-11-16 10:00:23 +00:00
Seigo Nonaka
219e2c7949
Add wordSpacing parameter to Paint
...
Adds the ability to control word spacing from Java, wiring up the
plumbing to the corresponding change that adds it at the Minikin
level.
Bug: 31707212
Test: ran graphicstests
Change-Id: I568186aca961d51ee5231cb0331f882b7b005e90
2016-11-16 16:24:07 +09:00
sergeyv
554ffeb8b7
Support hardware bitmaps in bitmap shaders
...
Test: hwuimacro bitmapShaderEglImage --onscreen.
bug:30999911
Change-Id: I9d16a1c217a4474841794cf27ce49e3f7823678e
2016-11-15 18:43:09 -08:00