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
Jason Sams
5dc336e23a
Merge "RS Error cleanup. Thow java exception during init if the GL driver fails rather than native crash."
2010-11-03 14:29:16 -07:00
Jason Sams
d5f0630034
RS Error cleanup.
...
Thow java exception during init if the
GL driver fails rather than native crash.
Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e
2010-11-03 14:27:11 -07:00
Jeff Brown
e46a0a4693
Fix a key repeating bug.
...
This change fixes a bug in the dispatcher where the window manager
policy would incorrectly receive a key repeat count of 0 in the case
where the key repeat was generated by the hardware or driver.
Long-press on HOME was broken as a result.
Bug: 3159581
Change-Id: If0f02662313f5b879a4e566fbb461389e274a550
2010-11-02 17:58:22 -07:00
Jeff Brown
5ffcd088ce
Merge "Add plumbing for volume mute key."
2010-11-02 17:38:18 -07:00
Jeff Brown
b0418da0e7
Add plumbing for volume mute key.
...
Full support for the volume mute key will be implemented in a
later change.
Bug: 2912307
Change-Id: I98c27d6360f159c8b7447e04b45f442eff87b38a
2010-11-02 17:31:39 -07:00
Romain Guy
98444a944c
Merge "Optimize FBO drawing with regions. This optimization is currently disabled until Launcher is modified to take advantage of it. The optimization can be enabled by turning on RENDER_LAYERS_AS_REGIONS in the OpenGLRenderer.h file."
2010-11-02 16:23:22 -07:00
Romain Guy
5b3b35296e
Optimize FBO drawing with regions.
...
This optimization is currently disabled until Launcher is
modified to take advantage of it. The optimization can be
enabled by turning on RENDER_LAYERS_AS_REGIONS in the
OpenGLRenderer.h file.
Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
2010-11-02 16:17:23 -07:00