Jason Sams
6f4cf0b888
Fix ref counting for globals when set from java code.
...
Change-Id: I415b6ddeaab277e60233e905a6bae357cd5193eb
2010-11-16 17:37:02 -08:00
Jason Sams
7a21ee6148
Fix crash with extended debugging.
...
Change-Id: I982a7c7ea7ccae074be5254032c43a862137747a
2010-11-16 12:19:37 -08:00
Stephen Hines
baa19bc59c
Remove WARs for zero-init + destructors.
...
Change-Id: I919db554f3f6fa1fb027402298602a16fba4a235
2010-11-15 17:09:02 -08:00
James Dong
df7a856d3d
Fixed a race condition where some recording frames may not be released.
...
When startRecording() is called before setListener(), recording frames
are sent right after startRecording(), but there is no listener to
release the recording frames. This causes the hang in media server.
bug - 3166356
Change-Id: I19366ca682ef9f6b847590c190c30a15ed32b8e4
2010-11-15 13:14:59 -08:00
Kenny Root
b763fa1d7c
Merge "Split UTF functions from String8/16"
2010-11-15 11:11:22 -08:00
Bryan Mawhinney
c0aaccc485
Add support for integer mod.
...
Change-Id: I681b8220c8b39d865ade036a93ba93a965e259c9
2010-11-15 17:43:12 +00:00
Kenny Root
300ba68469
Split UTF functions from String8/16
...
Split out all the UTF-8/16/32 handling code from String8/16 to its own
file to allow better reuse of code.
Change-Id: If9ce63920edc75472c38da4adce0d13cda9ad2f7
2010-11-12 15:53:40 -08:00
Jason Sams
c930e1f736
Merge "Fix line drawing in RS example."
2010-11-12 15:02:06 -08:00
Jason Sams
815aaebb59
Fix line drawing in RS example.
...
Change-Id: I5a83ac8d943488d19d83af1bd20a15a3c02999da
2010-11-12 14:58:56 -08:00
Jeff Brown
46e75294d5
Enable touch splitting for all windows by default.
...
New default only applies to applications with targetSdkVersion >=
HONEYCOMB. Old applications default to no touch splitting for
their windows.
In addition, enabled split touch for various system windows.
Bug: 3049580
Change-Id: Idc8da9baa2cd8e1e4e76af8967d7b6a5ccb94427
2010-11-12 14:53:43 -08:00
Chet Haase
e7d2295c06
make ResourceCache for display lists thread-safe
...
Change-Id: I41885b4ae249d7d7c000bab17bf32340ba85ab3a
2010-11-11 16:44:46 -08:00
Romain Guy
add94f204c
Merge "Free resources only from the GL context thread. Bug #3179882 "
2010-11-11 15:42:35 -08:00
Romain Guy
fe48f65922
Free resources only from the GL context thread.
...
Bug #3179882
Resources were freed following garbage collections on a worker thread.
This worker thread had no EGL context, which would cause the renderer
to incorrectly assume that the memory was liberated.
Change-Id: Ifdb51f94ddf42641e8654522787bfac532976c7c
2010-11-11 15:36:56 -08:00
Jamie Gennis
7ab17a3426
Merge "Implement reducing the buffer count of a Surface."
2010-11-11 15:26:21 -08:00
Jamie Gennis
6c925d00e1
Implement reducing the buffer count of a Surface.
...
Change-Id: I7f979c60c06d654aa8265002836277434bc1a64f
Bug: 3095167
2010-11-11 14:06:38 -08:00
Jamie Gennis
088f50ccf7
Merge "Fix a compile warning in the Surface class."
2010-11-11 13:50:43 -08:00
Jamie Gennis
0b440fc34d
Fix a compile warning in the Surface class.
...
Change-Id: Id744e71d2cd23c287925a5090e13a6d9908cdd99
2010-11-11 13:41:43 -08:00
Romain Guy
01d0657957
Reduce number of GL calls when drawing with shaders.
...
Change-Id: I27aca9f6d381d5c7e363d90a93225d185f2ff4e3
2010-11-11 12:06:27 -08:00
Romain Guy
6ae689201f
Merge "Add new runtime debug flags."
2010-11-10 19:06:17 -08:00
Romain Guy
e190aa6975
Add new runtime debug flags.
...
Change-Id: I07955de166a89b5053c6c13f250bb3e2936ca86e
2010-11-10 19:01:29 -08:00
Alex Sakhartchouk
95ab69f4f4
Merge "Code cleanup to make formatting consistent across all the renderscript files."
2010-11-10 12:16:50 -08:00
Romain Guy
bb69143ef5
Merge "Move all debug flags in a single place."
2010-11-10 12:04:05 -08:00
Romain Guy
c15008e72e
Move all debug flags in a single place.
...
This change also adds a new memory usage flag. When turned on, the
following is printed after every frame:
D/OpenGLRenderer( 3723): Current memory usage / total memory usage (bytes):
D/OpenGLRenderer( 3723): TextureCache 3766680 / 20971520
D/OpenGLRenderer( 3723): LayerCache 3538944 / 8388608
D/OpenGLRenderer( 3723): GradientCache 135168 / 524288
D/OpenGLRenderer( 3723): PathCache 41180 / 4194304
D/OpenGLRenderer( 3723): TextDropShadowCache 0 / 2097152
D/OpenGLRenderer( 3723): FontRenderer 0 262144 / 262144
D/OpenGLRenderer( 3723): FontRenderer 1 262144 / 262144
D/OpenGLRenderer( 3723): FontRenderer 2 262144 / 262144
D/OpenGLRenderer( 3723): Other:
D/OpenGLRenderer( 3723): FboCache 2 / 12
D/OpenGLRenderer( 3723): PatchCache 31 / 512
D/OpenGLRenderer( 3723): Total memory usage:
D/OpenGLRenderer( 3723): 8268404 bytes, 7.89 MB
This should help tracking possibe memory issues.
Change-Id: I83f483ca1d2dbef904829bce368e33fe5503e8d6
2010-11-10 11:59:15 -08:00
Alex Sakhartchouk
ed9f210568
Code cleanup to make formatting consistent
...
across all the renderscript files.
Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
2010-11-10 11:30:51 -08:00
Jason Sams
eaf6bd1a69
Merge "Continue error check improvements and write some docs."
2010-11-09 17:38:20 -08:00
Jason Sams
06d69de788
Continue error check improvements and write some docs.
...
Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
2010-11-09 17:11:40 -08:00
Romain Guy
f70a7e3495
Fix possible crash when texture is NULL in the drop shadow cache.
...
Change-Id: I2142c55dbcfebcdf013a7f4ae04b266a60f5ce8a
2010-11-09 16:37:28 -08:00
Romain Guy
9e10841c27
Correctly remove unused paths from the cache.
...
Change-Id: I41d9334dcd9871634037344ab49bf69383498161
2010-11-09 14:37:42 -08:00
Jason Sams
2b425d3c9b
Merge "Fix fountain bug with more than 10 touches reported."
2010-11-09 14:23:06 -08:00
Jason Sams
641b0628cd
Fix fountain bug with more than 10 touches reported.
...
Change-Id: Ie4ddefbcbe6407fb7ffae2c6e2440fec0b974cfb
2010-11-09 14:20:34 -08:00
Chet Haase
0d200833fd
Fix GL rendering of translucent surfaces
...
GL renderer was not initializing scissor correctly for translucent
surfaces, resulting in invisible window backgrounds in some cases
like fading popup windows
Change-Id: I87a964986e1ba2c4f59708c8892c5fa71903e6fc
2010-11-09 06:38:56 -08:00
Jason Sams
1c41517124
Handle user message ID 0
...
Pass RS runtime errors back to java.
throw exceptions for runtime errors.
Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
2010-11-08 17:19:31 -08:00
Alex Sakhartchouk
3fe599ce21
Merge "Moving attrib creation to Mesh. Adding arrays as shader inputs. Removing fixed size arrays."
2010-11-08 15:29:45 -08:00
Alex Sakhartchouk
9d71e21800
Moving attrib creation to Mesh. Adding arrays as shader inputs.
...
Removing fixed size arrays.
Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
2010-11-08 15:10:52 -08:00
Romain Guy
d8acf9b682
Merge "Support nested display lists."
2010-11-08 14:03:30 -08:00
Joe Onorato
1a542c7b8e
The CHEEK_TOUCH stuff never worked. Remove it.
...
Bug: 3104906
Change-Id: Ia37236ba1775fc3ec8c111e2e0b85b105e0dea6a
2010-11-08 13:02:58 -08:00
Jeff Brown
3915bb845b
Tell system server whether the app handled input events.
...
Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.
This will be used to move more of the global default key processing
into the system server instead of the application.
Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
2010-11-08 12:49:43 -08:00
Romain Guy
0fe478ea04
Support nested display lists.
...
Change-Id: I3815a2832fc0f722c668ba8f51c5f177edb77c94
2010-11-08 12:15:28 -08:00
Stephen Hines
cce1d2a60b
Merge "Add vector array test to RSTest."
2010-11-08 11:49:02 -08:00
Stephen Hines
5fe11d20e3
Add vector array test to RSTest.
...
Change-Id: I258d23a44df011aaf64aa545c86c97611d70143f
2010-11-05 19:48:42 -07:00
Jeff Brown
51e7fe7545
Rename the locked meta key constants for clarity.
...
Also added some tests for LED setting.
Change-Id: I3fd86322afd07ae8de52d1ccbc2fae2c6d586641
2010-11-05 13:27:35 -07:00
Romain Guy
7f78b0c3ae
Lines would not set the scissor before drawing.
...
Lines were not drawing in Calendar because they were getting clipped
by the previous clip rectangle. This change simply updates the scissor
as needed. This change also reduces the number of state changes in GL.
Change-Id: I41ab13dca3a33cfa6d1a44371c48852ab418b04e
2010-11-04 14:36:26 -07:00
Romain Guy
8ad4b47920
Merge "Fix possible rendering issue when drawing a path."
2010-11-04 12:14:37 -07:00
Romain Guy
1041aded2d
Fix possible rendering issue when drawing a path.
...
Change-Id: I25f2e609589f0dd9294bcf7930de6398c0d7e377
2010-11-04 12:10:40 -07:00
Jason Sams
6b81399aa1
Merge "Update ScriptC constructor to remove depricated param."
2010-11-03 23:03:06 -07:00
Jason Sams
3ba02b3d2f
Update ScriptC constructor to remove depricated param.
...
Change-Id: Id36e325834526c6b5416fd78d5cf4259d7df97e9
2010-11-03 23:01:38 -07:00
Romain Guy
617d74ac48
Merge "Fix rendering bug with saveLayerAlpha/drawColor."
2010-11-03 20:03:42 -07:00
Romain Guy
e45362cad9
Fix rendering bug with saveLayerAlpha/drawColor.
...
drawColor() was not calling quickReject because it fills the clip region
and thus always passes the test. However, quickReject also checks whether
the current layer is invisible. drawColor() now performs the same check
and avoid drawing inside an invisible layer.
Change-Id: I63d0e9a8a9c0fba774f0f5c3870d58e6ed96fbd1
2010-11-03 19:58:32 -07:00
Romain Guy
9195f75df0
Merge "Fix rendering issue with layers."
2010-11-03 16:23:41 -07:00
Romain Guy
5ec9924d24
Fix rendering issue with layers.
...
Change-Id: I1d511ab2707000762a942d32c300a9944ab38603
2010-11-03 16:19:08 -07:00