10497 Commits

Author SHA1 Message Date
TreeHugger Robot
9914348465 Merge "[HWUI] clean up libgui include directives" 2019-08-05 17:43:23 +00:00
Alec Mouri
6db59a66bd [HWUI] clean up libgui include directives
As a first pass removing some stale includes.

Bug: 138819035
Change-Id: I7aef319aa8f1b13b6482ef61fda151560e570558
Test: builds
2019-08-02 18:02:50 -07:00
Roman Kiryanov
6073613967 Crash in createPBufferSurface if eglCreatePbufferSurface fails
EglManager::makeCurrent assumes mPBufferSurface has a valid
surface. This assumtion is not satisfied if
eglCreatePbufferSurface fails.

Bug: 138733217
Test: build
Change-Id: I580dca24f440accda458d53f988bb24cbabede36
Signed-off-by: Roman Kiryanov <rkir@google.com>
2019-08-02 14:37:53 -07:00
TreeHugger Robot
f2afa375c6 Merge "TextureVuew rebind GL texture, if AHB content has changed" 2019-08-02 13:46:08 +00:00
Fedor Kudasov
3f214d5867 Merge "Enable surface for host" 2019-08-02 06:11:00 +00:00
Stan Iliev
883c9d9dee TextureVuew rebind GL texture, if AHB content has changed
Bug: 138674291
Test: Ran apps with TextureView and CTS
Change-Id: Ieecf7daf160761de719356644ddaeda8f9c068e1
2019-08-02 03:00:31 +00:00
Nathaniel Nifong
e2617db752 use mskp extension to differentiate multi frame files.
Test: Captured a 1-frame, and multi-frame file

Change-Id: Id8583c163af0ee0a0ac8fe12aee92d2cfce272d1
2019-08-01 11:11:26 -04:00
Fedor Kudasov
c53d28091d Merge "Include more precise dependencies" 2019-07-31 20:22:19 +00:00
Fedor Kudasov
f6724205bb Merge "Remove unused method" 2019-07-31 18:23:54 +00:00
Derek Sollenberger
7bdc19bacb Merge "Isolate the graphics classes into their own static lib" 2019-07-31 17:43:57 +00:00
Fedor Kudasov
e690983f83 Remove unused method
Bug: 117921091
Test: all tests should pass
Change-Id: I8830e061e30a73e1ea2accda8c9a4268818f5b80
2019-07-31 15:12:05 +00:00
Fedor Kudasov
85d6f10a0f Include more precise dependencies
Bug: 117921091
Test: all tests should pass
Change-Id: I3be0eeef413aaf69a3a9e27e0bc7f2841a1f5f95
2019-07-31 15:04:41 +00:00
TreeHugger Robot
32e205dc9c Merge "Improve integer aligned coordinate detection" 2019-07-30 00:07:43 +00:00
TreeHugger Robot
3841937d25 Merge "pass Paint not SkPaint to Canvas" 2019-07-29 21:57:49 +00:00
Stan Iliev
694f3e4a55 Improve integer aligned coordinate detection
65.9998 should be detected as integer aligned. Before this CL
only 65.0001 was detected as an integer.

Test: Pass TextureViewTest#testSamplingWithTransform
Bug: 137682518
Change-Id: I65e650f50040ab56d2237c14d5d8ee191349b93e
2019-07-29 17:00:49 -04:00
Derek Sollenberger
5d0ca63d9c Isolate the graphics classes into their own static lib
Update additional headers to include-what-you-use to resolve
compiler errors related to moving include paths.

Test: CtsUiRenderingTestCases
Change-Id: I230408a53610ad1926f9e46d5aff66f52fec4a3a
2019-07-29 14:57:14 -04:00
Mike Reed
c2dbc03acc pass Paint not SkPaint to Canvas
Test: cts

Change-Id: I9a3314bc3f221b6e884c8c84d7b0241f7c5be600
2019-07-29 13:38:35 -04:00
John Reck
59dd2ea974 Fix ReliableSurface to be more reliable
Handle TIMED_OUT better by rescheduling (TODO: give up after N
attempts?)

Fix SYNC_SURFACE_LOST_REWARD_IF_FOUND path to actually go fetch
a new surface.

Bug: 137509524
Test: Injected errors randomly, verified nothing got permanently dead.
Change-Id: Id30f8ad1dd7196041ee84c16c8cf5c814002a6ce
2019-07-26 16:58:37 -07:00
Fedor Kudasov
a8871166a3 Enable surface for host
Bug: 117921091
Test: all tests should pass
Change-Id: I85ca106bb9d7bec36543abf6174ea6958207e56b
2019-07-25 07:15:36 +00:00
TreeHugger Robot
5c8d9dbbcc Merge "Remove final usage of asSkCanvas" 2019-07-22 22:54:47 +00:00
John Reck
296c5ef20e Merge "Increase dequeueBuffer timeout" into qt-r1-dev am: 5ab5cd7aa2
am: 6769f25c17

Change-Id: I13931cd14fead1141acbea5cef8deb61a6c9119e
2019-07-22 12:51:21 -07:00
John Reck
6769f25c17 Merge "Increase dequeueBuffer timeout" into qt-r1-dev
am: 5ab5cd7aa2

Change-Id: Ia32a0b1177a5e7160680e1d4c9c40ff23075c431
2019-07-22 12:34:30 -07:00
John Reck
3f333d6d72 Increase dequeueBuffer timeout
Timeout recovery isn't working properly, so increase it
to avoid any false-positives from something like a
slow screen-on

Bug: 137509524
Test: none
Change-Id: Ic4fae04b41f71600479f9557e334f67c27851db4
2019-07-18 10:48:49 -07:00
Derek Sollenberger
49db812ffd Merge "Update includes to begin isolating graphics classes." 2019-07-17 12:24:49 +00:00
Jeongik Cha
168267660f Merge changes from topic "system_ext"
* changes:
  Consider overlay in system_ext as system's
  Support /system_ext partition
2019-07-17 10:24:58 +00:00
Derek Sollenberger
8b99419192 Update includes to begin isolating graphics classes.
GraphicsJNI.h will only be visible to files in the graphics component
and this CL begins to remove all usages of that header that are known
to be outside the graphic component.

Test: compile
Bug: 137655431
Change-Id: If310782e5d95d05ab7cbd54dafa5771d315707a7
2019-07-16 14:23:39 -04:00
John Reck
894e85a34d Remove final usage of asSkCanvas
Bug: 137581257
Test: builds
Change-Id: Ib38f85c11be332e6cd784f8bbf55f58cde72ac09
2019-07-15 16:16:44 -07:00
TreeHugger Robot
ba7fb6a5f6 Merge "Improve logic when to use filtering in readback and TextureView" 2019-07-15 18:18:00 +00:00
Nathaniel Nifong
8f101b8303 Merge "Resolve drawable when playing back DisplayListData in the RenderThread." 2019-07-15 14:04:06 +00:00
Nathaniel Nifong
31fee3a244 Resolve drawable when playing back DisplayListData in the RenderThread.
Drawables are mutable, and not expected to produce the same content if retained for longer than the
duration of the frame. This becomes relevant when recording multi-frame SKPs because the
serialization step forces drawables to be played back long after the frame completed. By resolving
the drawable when we are drawing the frame we avoid ref'ing the SkDrawable and do not extend its
lifetime beyond the frame.

Bug: skia:9234
Test: Captured SKPs on a Pixel 3
Change-Id: I5d317dd14e20be9d5e18675df8667327bd05aff0
2019-07-12 15:14:06 -04:00
Stan Iliev
134372dba9 Improve logic when to use filtering in readback and TextureView
Detect scaling in screen coordinates, which allows to turn off
filtering for some rect-to-rect matrices (90/270 rotation, scaling).

Test: CTS test coverage expanded in testSamplingWithTransform
Bug: 135895166
Change-Id: Icf5c45fa62bb7a96c5f5464d312bf98a653bc78d
2019-07-11 20:12:51 -04:00
Fedor Kudasov
95eab8ae45 Merge "Enable simplified version of RootRenderNode for host" 2019-07-10 19:56:18 +00:00
Jeongik Cha
cba9579158 Consider overlay in system_ext as system's
When there is overlay package in system_ext, turn on POLICY_SYSTEM_PARTITION.
In other words, overlay pacakge in /system_ext is considered as system's one

Test: mv vendor/overlay/framework-res__auto_generated_rro.apk system_ext/overlay
      and then check if it works properly.
Bug: 136715327

Change-Id: Ib225368eae41203a8630f4310d26e9cf1afa706a
2019-07-10 00:33:26 +09:00
Nathaniel Nifong
3af61ed71e Merge "Introduce multi-frame SKP capturing in SkiaPipeline" 2019-07-08 13:49:40 +00:00
Fedor Kudasov
09cfce089d Enable simplified version of RootRenderNode for host
Bug: 117921091
Test: all tests should pass
Change-Id: Iae6e5f37eb11cdcffe29336ce2eda6ab6897385c
2019-07-04 08:44:26 +00:00
Fedor Kudasov
996dd9cbec Merge "Add more useful source files" 2019-07-03 18:20:30 +00:00
Nathaniel Nifong
d2e49a29bb Introduce multi-frame SKP capturing in SkiaPipeline
Capture script usage is the same as before, but all frames are combined
into a single file which shares the images between frames, reducing the
file size and serialization time somewhat. This brings us closer to the
objective of realistic performance measurements, but to do that
correctly, a second format is needed, (skbug.com/9174)

Single frame captures still produce the same format.

Test: The method used for serialization is tested in skia's DM unit
tests, in MultiSkpTest.cpp
Test: Tested manually with the libs/hwui/tests/scripts/skp-capture.sh script
Bug: skbug.com/9210
Change-Id: I69da8d191640ebb444991f107d60389f1519a9db
2019-07-03 13:53:24 -04:00
Fedor Kudasov
666f8a5101 Add more useful source files
Bug: 117921091
Test: all tests should pass
Change-Id: I2a7f53f985c060967e9eb3364b7f73b073eab1f9
2019-07-03 14:25:15 +00:00
Fedor Kudasov
bc409cf190 Rearrange some headers
Bug: 117921091
Test: all tests should pass
Change-Id: I6ee108df6ec1de8deabfb5ec6b0e8b6e76a940b1
2019-07-03 13:01:40 +00:00
Ryan Mitchell
913c8074a7 Merge "Set idmap2 binary uid and gid after forking" into qt-dev am: ebad9125c8 am: e9acb9c566
am: 18e2a06453

Change-Id: I0bf570d5c4198f3ff9e5c4c62c8b88bc48db7ec6
2019-07-02 12:28:17 -07:00
Ryan Mitchell
18e2a06453 Merge "Set idmap2 binary uid and gid after forking" into qt-dev am: ebad9125c8
am: e9acb9c566

Change-Id: I30d650e7d5548f6e53f37c22f62e4de244145bdc
2019-07-02 11:53:41 -07:00
Ryan Mitchell
e9acb9c566 Merge "Set idmap2 binary uid and gid after forking" into qt-dev
am: ebad9125c8

Change-Id: I13b16878cad1cb742c0b417fa09ec406e8f1bf2d
2019-07-02 10:52:24 -07:00
Fedor Kudasov
0126507661 Merge "Split out RootRenderNode" 2019-07-02 09:51:55 +00:00
Ryan Mitchell
a8f13667c2 Set idmap2 binary uid and gid after forking
The file permissions of the idmap2 binary are currently not set
correctly when the system forks and execs the idmap binary during
zygote. This chnages sets the uid and gid after forking to the same uid
and gid of the parent process.

Bug: 134897503
Test: device boots and generates idmap
Change-Id: Ic7fac49e5982f3c47713603b905c3a6be117a05b
2019-07-01 21:19:21 +00:00
John Reck
5e56d3f12b Merge "Switch to import for CtsUiRenderingTestCases" 2019-07-01 15:59:33 +00:00
Fedor Kudasov
34a2576340 Split out RootRenderNode
- Deleted unused OnFinishedEvent, InvokeAnimationListeners
- Hid FinishAndInvokeListener and AnimationContextBridge in the
implmentation

Bug: 117921091
Test: all tests should pass
Change-Id: I98af836b27d06907a24696fcae03f24808c1993a
2019-07-01 09:59:48 +00:00
TreeHugger Robot
6677d802e8 Merge "HWUI-VK: Use auto prerotation for Vulkan backend" 2019-06-28 18:08:58 +00:00
Fedor Kudasov
8fe7767d0d Merge "Remove unused (mostly GL-related) headers" 2019-06-28 10:01:21 +00:00
Yiwei Zhang
dab6ecd6ce HWUI-VK: Use auto prerotation for Vulkan backend
The consumer driven resizing now works as below:
1. Query the cached transform hint for this draw cycle
2. dequeuBuffer first to get the actual size
3. Cancel the pre-rotation done on the buffer
4. Update logical window size according to the transform

Bug: 136110987
Test: manually test split screen with resizing and rotation
Test: CtsUiRenderingTestCases and CtsGraphicsTestCases
Change-Id: Ia7f1a53fd761b90cb3ff429086a060d48e40919c
2019-06-27 15:19:45 -07:00
John Reck
db7d1df4fc Switch to import for CtsUiRenderingTestCases
Centralizes option management

Test: this
Change-Id: I80bcaec765e1ed2bf0bdbe370548157690367ec6
2019-06-27 10:32:27 -07:00