2470 Commits

Author SHA1 Message Date
Romain Guy
ff316ec7a7 Implement support for drawBitmapMesh's colors array
Change-Id: I3d901f6267c2918771ac30ff55c8d80c3ab5b725
2013-02-13 18:39:43 -08:00
Jason Sams
23496bdbba Convert live preview demo to IO_OUTPUT
Change-Id: I01193932a6fcd572841434a59d34eda60d9b8b02

Fix aspect ratio
2013-02-13 16:07:50 -08:00
Jason Sams
0a4b65e079 Merge "Reuse context and allocations across test." 2013-02-13 23:49:10 +00:00
Stephen Hines
1f884ed206 Merge "Add tests for the new clipped kernel Java reflection." 2013-02-13 23:17:54 +00:00
Jason Sams
fb2f5c207a Reuse context and allocations across test.
Change-Id: I9a3498c9095db2c7876bf45d6bd5c75deded8dd8
2013-02-13 12:11:53 -08:00
Fabrice Di Meglio
0c33ecd209 Merge "Clean Paint.mBidiFlags as it is no longer used" 2013-02-13 19:11:50 +00:00
Stephen Hines
37352bb971 Add tests for the new clipped kernel Java reflection.
Change-Id: Idb0444823711da356ae0ac025aa79c6ff8068373
2013-02-13 00:11:57 -08:00
Fabrice Di Meglio
6d9fe5bd22 Clean Paint.mBidiFlags as it is no longer used
See bug #7623824

Change-Id: Ie2f9422821f6dcc73c99e8695f448e966b587b1d
2013-02-12 13:12:13 -08:00
Stephen Hines
5d0177081c Update RSTest_Compat for stride changes.
Change-Id: I88acbf65b522a15c6386f4ab002971384a028ac7
2013-02-08 22:32:23 -08:00
Stephen Hines
7bd280ac8d Fix stride/addressing issues for RS tests.
Change-Id: Icb49b4ef849b2bba9702dbb7817f3715e52091f6
2013-02-08 16:34:20 -08:00
Stephen Hines
1d9ea8a83a Merge "Rename convolve3x3.rs to prevent collisions." 2013-02-07 03:19:38 +00:00
Jason Sams
3c6721899e Merge "Implement rs.sendMessage()" 2013-02-07 02:17:53 +00:00
Stephen Hines
1b2ad77a9f Rename convolve3x3.rs to prevent collisions.
Change-Id: I9046348959d51fda6142e16f1226fed0c57a6d16
2013-02-06 17:33:18 -08:00
Chris Craik
1ba0289d18 Merge "Add cap tessellation support" 2013-02-07 00:14:38 +00:00
Chris Craik
65cd612fac Add cap tessellation support
bug:7117155
bug:8114304

Currently used for lines (with and without AA) and arcs with useCenter=false

Also removes 0.375, 0.375 offset for AA lines

Change-Id: Ic8ace418739344db1e2814edf65253fe7448b0b0
2013-02-06 15:35:12 -08:00
Romain Guy
3c099c42fd Fix Snapshot::resetClip to also reset the clip region
Change-Id: I979151e73f64ff9d45f8a5232d8700361b09fbc7
2013-02-06 15:28:04 -08:00
Jason Sams
455d644266 Implement rs.sendMessage()
Change-Id: Ib4f4bb7bb4f697d0b5405ad55721394ed2456c65
2013-02-05 19:20:18 -08:00
Romain Guy
b969a0de65 Add support for non-antialiased text
Change-Id: I17c073955ab94abc9b409e5fcfbc675faa07c5ba
2013-02-05 14:44:43 -08:00
Dianne Hackborn
0c5b66fc9f Fix build.
Change-Id: I9a1ef2370e20b70b15f6f59229802825127174ff
2013-02-01 16:15:53 -08:00
Dianne Hackborn
f265ea9d83 App ops: vibration, neighboring cells, dialing, etc.
Improve handling of vibration op, so that apps are
better blamed (there is now a hidden vibrator API that
supplies the app to blame, and the system now uses this
when vibrating on behalf of an app).

Add operation for retrieving neighboring cell information.

Add a new op for calling a phone number.  This required
plumbing information about the launching package name through
the activity manager, which required changing the internal
startActivity class, which required hitting a ton of code that
uses those internal APIs.

Change-Id: I3f8015634fdb296558f07fe654fb8d53e5c94d07
2013-02-01 15:14:29 -08:00
Jason Sams
fe02fc43d6 Balls perf update
Change-Id: I627b125df36cfe137964472f95bb34b77d3d4355
2013-02-01 13:45:36 -08:00
Romain Guy
c3fedafc5f Fix graphical corruption on QCOM GPU
Bug #7146141

The GL_QCOM_tiled_rendering extension requires careful use of
start/endTiling when attaching a renderbuffer dynamically.

Change-Id: I20036683ed3909ffaf40cc3d57a25257e35b6fa2
2013-01-29 17:46:17 -08:00
Svetoslav
3a34d17412 Fixing the build
Change-Id: Ief7654775307c829a60e65217ae821aa6801303c
2013-01-28 19:55:35 -08:00
Jason Sams
806f133e41 Merge "Turn off vector code for tests where this reduces performance." 2013-01-22 23:38:36 +00:00
Stephen Hines
582748e1d3 Merge "Build the actual RSTest_CompatLib." 2013-01-22 22:43:36 +00:00
Jason Sams
79914f9d18 Turn off vector code for tests where this reduces performance.
Change-Id: Ice90a8f510db9acc5325a1cfa44638b5a1cef782
2013-01-22 13:36:44 -08:00
Jason Sams
b472aade9e Merge "fast math error testing." 2013-01-22 21:30:18 +00:00
Stephen Hines
fc7453026d Build the actual RSTest_CompatLib.
Change-Id: I1d1ae707a1326b56e91c81c3744bd702f296bbc2
2013-01-18 19:45:00 -08:00
Stephen Hines
5cb9037818 Revert "Move RSTest to compatibility library."
This reverts commit 36103c80b1d258157f0f4b531bc02f2fbb9e2d40.
2013-01-18 18:47:00 -08:00
Jason Sams
023c260afa fast math error testing.
Change-Id: Ib9c2af9ac2aaf44c0e08a47099dc1f9c057c9ac3
2013-01-18 18:26:53 -08:00
Tim Murray
878749fef0 Merge "Move RSTest to compatibility library." 2013-01-19 01:26:13 +00:00
Romain Guy
494647961f Merge "Allow layers with a stencil buffer to be resized on the fly Bug #7146141" 2013-01-19 01:03:39 +00:00
Romain Guy
2055abaa0a Allow layers with a stencil buffer to be resized on the fly
Bug #7146141

This change moves the resizeLayer() from LayerCache (where it should
never have been anyway) to Layer. This makes a little more sense.

Change-Id: I8b2f9c19c558e738405a58b9e71ec5799fc6be88
2013-01-18 16:42:51 -08:00
Tim Murray
36103c80b1 Move RSTest to compatibility library.
Change-Id: I486f485fe9798d81dcd8e1ca9001bb851bcfc9b8
2013-01-18 16:28:02 -08:00
Kristian Monsen
21af9258f3 Merge "Better detecting if current threasd is main thread" 2013-01-18 23:58:33 +00:00
Stephen Hines
70b900cded Merge "Actually test fract(float)." 2013-01-18 23:36:12 +00:00
Kristian Monsen
0a30328c10 Better detecting if current threasd is main thread
Old approach got broken after:
https://googleplex-android-review.googlesource.com/#/c/266421/2

Change-Id: I12ae23efdbaebd8ba24acb1b7eff75c912d24f1d
2013-01-18 14:50:07 -08:00
Romain Guy
8ce00301a0 Implement clipRect with a transform, clipRegion & clipPath
Bug #7146141

When non-rectangular clipping occurs in a layer the render buffer
used as the stencil buffer is not cached. If this happens on a
View's hardware layer the render buffer will live for as long
as the layer is bound to the view. When a stencil buffer is
required because of a call to Canvas.saveLayer() it will be allocated
on every frame. A future change will address this problem.

If "show GPU overdraw" is enabled, non-rectangular clips are not
supported anymore and we fall back to rectangular clips instead.
This is a limitation imposed by OpenGL ES that cannot be worked
around at this time.

This change also improves the Matrix4 implementation to easily
detect when a rect remains a rect after transform.

Change-Id: I0e69fb901792d38bc0c4ca1bf9fdb02d7db415b9
2013-01-17 15:39:31 -08:00
Stephen Hines
4e17a9e671 Actually test fract(float).
Change-Id: I402c7ea43ea626f9748982919cb3753015df3da7
2013-01-16 18:50:24 -08:00
Amith Yamasani
5ebefec5bd Merge "Fix test build failure" 2013-01-17 00:10:16 +00:00
Amith Yamasani
45c0924fbb Fix test build failure
Change-Id: Ic96c2490439a78af2fb92db49b25b67b56954a20
2013-01-16 16:04:00 -08:00
Xia Wang
b6cf3c02de Merge "Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks." 2013-01-15 18:03:01 -08:00
Xia Wang
b2d98ceb27 Fix image processing test to include all benchmark tests
-- each test case can be excuted separately
-- add a test case to run all benchmarks.

Change-Id: I3c61dfe50267a6db11bc1895a4f37ed618a9103b
2013-01-15 18:00:38 -08:00
Xia Wang
2439c921fb am cfa979b2: am b88564d2: am 12798957: am d1a18011: Merge "Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks." into jb-mr1-dev
* commit 'cfa979b200a016dd24e851e0da0ce956aa932e2e':
  Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks.
2013-01-14 15:14:43 -08:00
Xia Wang
1279895720 am d1a18011: Merge "Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks." into jb-mr1-dev
* commit 'd1a18011a68b2cac907d080d9044d527fd4c5853':
  Fix image processing test to include all benchmark tests -- each test case can be excuted separately -- add a test case to run all benchmarks.
2013-01-14 15:00:38 -08:00
Romain Guy
735738c4dd Preliminary Support for region clipping
Region clipping, using Canvas.clipPath or Canvas.clipRegion, requires
a stencil buffer to be always present. In addition, extra wiring is
required in JNI and display lists.

This change only adds the necessary JNI/C++ APIs and some extra
plumbing to start the real work on properly supporting region
clipping.

A new debug define called DEBUG_CLIP_REGIONS can be used to draw
the current clip region. It is off by default, as is region
clipping.

The default implementation of clipPath() and clipRegion(), now
in native, mimics the previous Dalvik implementation to prevent
regressions.

Change-Id: I7903e7cfd7412b9b9b622566d4dbfce7bdcec00c
2013-01-14 14:27:54 -08:00
Xia Wang
a178d672b7 Fix image processing test to include all benchmark tests
-- each test case can be excuted separately
-- add a test case to run all benchmarks.

DO NOT MERGE

Change-Id: I3c61dfe50267a6db11bc1895a4f37ed618a9103b
2013-01-14 11:19:16 -08:00
Stephen Hines
bb469bde8d Merge "Add parentheses for latest Clang warnings." 2013-01-10 15:23:49 -08:00
Stephen Hines
9be5f0a306 Add parentheses for latest Clang warnings.
Change-Id: I843fd3eb44e1ab0a177d7045ca97cf146fd81231
2013-01-10 15:09:02 -08:00
Dianne Hackborn
53897adeb4 Merge "Maybe fix build." 2013-01-09 18:37:41 -08:00