1821 Commits

Author SHA1 Message Date
Romain Guy
48daa54d31 Add extra blending modes.
This change adds the following blending modes for shaders and color filters:
Add
Multiply
Screen
Overlay
Darken
Lighten

Change-Id: Iff22f5ce6041b43c71b1857d73013f5010ab3413
2010-08-10 21:42:40 -07:00
Jason Sams
7d73206ab2 Merge "Refcounting in allocations." 2010-08-10 18:46:50 -07:00
Jason Sams
cc6e6c9f13 Merge "Update image processing to cleaup code by not inlining functions that should be handled by the runtime." 2010-08-10 18:45:41 -07:00
Alex Sakhartchouk
facd6fc4be Adding quaternion functions to math library.
Change-Id: I692214648892120943ca7d3b00034e27d1c330cf
2010-08-10 17:34:39 -07:00
Romain Guy
f79ad0c205 Merge "Add support for text underline and strikethru." 2010-08-10 17:27:21 -07:00
Romain Guy
a674ab74e3 Add support for text underline and strikethru.
Change-Id: I3a0e6643d7cafbdd06d9a908c8cf9347dcaba146
2010-08-10 17:26:42 -07:00
Jeff Brown
ea48ff4ba4 am 95105f3c: am c3fc2d03: Fix safe mode and KeyEvent.getMaxKeyCode().
Merge commit '95105f3c25110f28b236cfa71e9ad74533eef854'

* commit '95105f3c25110f28b236cfa71e9ad74533eef854':
  Fix safe mode and KeyEvent.getMaxKeyCode().
2010-08-10 16:39:10 -07:00
Jeff Brown
95105f3c25 am c3fc2d03: Fix safe mode and KeyEvent.getMaxKeyCode().
Merge commit 'c3fc2d03d58a258c53c9265a70143d4af076b764' into gingerbread-plus-aosp

* commit 'c3fc2d03d58a258c53c9265a70143d4af076b764':
  Fix safe mode and KeyEvent.getMaxKeyCode().
2010-08-10 16:33:47 -07:00
Jeff Brown
c3fc2d03d5 Fix safe mode and KeyEvent.getMaxKeyCode().
Bug: 2901731
Change-Id: I78617c1b9dee3790fc590e5af4b5083368873184
2010-08-10 16:28:03 -07:00
Romain Guy
a48a1a87ba Fast text selection drawing.
Change-Id: I93fb1312b47bc05345defa9b6cfe47c0658bb329
2010-08-10 14:59:15 -07:00
Romain Guy
61c8c9c5b2 Fix tons of bugs and add new text rendering support.
Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
2010-08-10 12:22:01 -07:00
Jason Sams
b28ca96fd6 Refcounting in allocations.
Change-Id: Ida2dfb404b2cd832e622d981d73a938d5bc5b821
2010-08-09 18:13:33 -07:00
Jason Sams
05716aa0a1 Update image processing to cleaup code by not inlining
functions that should be handled by the runtime.

Change-Id: I54c590913285bceb02a9076dbe6355d6f6bc6661
2010-08-09 12:09:36 -07:00
Romain Guy
1639351139 Make libhwui entirely optional.
The makefile variable USE_OPENGL_RENDERER must be set to true to compile
libhwui and the related code in the JNI layer.

This change also removes obsolete APIs from Canvas that must not be used
and would be confusing if left in. These APIs were remnants of our first
attempt at an OpenGL renderer for the view hierarchy and had not been
taken out before Android 1.0 was released.

Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
2010-08-08 17:45:07 -07:00
Romain Guy
9cccc2b9bd Enforce maximum texture size.
When an app tries to render a bitmap or path larger than the GPU's maximum
texture size, the drawing command is ignored and a warning is logged. This
change also makes texture drawing more robust by catching potential errors
during texture creation.

This change also fixes a crash in the FontRenderer. The destructor would
sometimes try to free an uninitialized array.

Change-Id: I95ae0939c52192d97b340aa02417bf6d0c962c57
2010-08-07 23:48:29 -07:00
Kenny Root
91fc6e8c89 am d7ce227b: am 818490ab: Fix String8::operator+
Merge commit 'd7ce227bcb854f048124bbc487eba844c6599142'

* commit 'd7ce227bcb854f048124bbc487eba844c6599142':
  Fix String8::operator+
2010-08-06 19:04:09 -07:00
Kenny Root
d7ce227bcb am 818490ab: Fix String8::operator+
Merge commit '818490ab2abe36dfc6c13d01fea5220bd64cca8c' into gingerbread-plus-aosp

* commit '818490ab2abe36dfc6c13d01fea5220bd64cca8c':
  Fix String8::operator+
2010-08-06 18:53:48 -07:00
Jason Sams
072671f0ee Merge "Fix debugging support for float vectors and add matrix debugging." 2010-08-06 16:24:15 -07:00
Jason Sams
d64188a4a4 Fix debugging support for float vectors and add matrix debugging.
Change-Id: Ie1ee3764a32889f3c39b923186f14af74ecb772f
2010-08-06 16:22:50 -07:00
Alex Sakhartchouk
8e3e359e59 Merge "Added drop shadow renderer to the font class." 2010-08-06 15:05:40 -07:00
Alex Sakhartchouk
f18136cb3c Added drop shadow renderer to the font class.
Change-Id: Id243abfbbb58e54f6a05f592a302984b5321e608
2010-08-06 14:49:04 -07:00
Romain Guy
22158e139a Automatically cleanup textures that don't fit in the cache.
Change-Id: I4f29ed96ea11118b391fb957e1e4d1b8fcef1537
2010-08-06 11:18:34 -07:00
Romain Guy
25ee037fee Fix incorrect memory cleanup in SkiaShader.
Bug #2895037

Change-Id: Id233c2a8a5b709dc9f26ff60aad989e9583a2382
2010-08-06 10:57:58 -07:00
Kenny Root
818490ab2a Fix String8::operator+
The LHS was ignored when using:
  String8 + String8
  String8 + (const char*)

Add unit tests for above.

Bug: 2898473
Change-Id: Ic8fe7be668b665c36aaaa3fc3c3ffdfff0fbba25
2010-08-06 09:00:10 -07:00
Jason Sams
b423dac932 Merge "Fix length normilization bug in rsMatrixLoadRotate." 2010-08-05 19:08:46 -07:00
Jason Sams
41d9825b9a Fix length normilization bug in rsMatrixLoadRotate.
Change-Id: Ibdc1a64f2db6110acd971f8cacd6b1f9c09b02de
2010-08-05 18:11:49 -07:00
Jason Sams
f6b5306e90 Merge "Use lowp colors in fixed funtion emulation." 2010-08-05 17:39:52 -07:00
Jason Sams
1911c60a4e Use lowp colors in fixed funtion emulation.
Change-Id: Ie525ee6e52652ba83efe4d9f1627410d846824ee
2010-08-05 17:38:29 -07:00
Romain Guy
8cc44cb669 Merge "Add support for paths." 2010-08-05 17:25:48 -07:00
Romain Guy
7fbcc0492f Add support for paths.
Rendering is implementing by rasterizing the paths into A8 textures.
This cna be extremely inefficient if the path changes often.

Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
2010-08-05 17:23:49 -07:00
Jason Sams
b39a8272f5 Fix behavior where the non-blocking sendToCliend would block
when there was enough room for the message but not the message header.

Change-Id: I600db04b91e76fa7966c7d8a98e5c56593e1806d
2010-08-05 15:17:15 -07:00
Kenny Root
d70cbb8943 am aec3e36f: am 2d817f75: Free scanBuf in ZipFileRO
Merge commit 'aec3e36fd4f8cdcc53110bbcd7f0afa20bf315d4'

* commit 'aec3e36fd4f8cdcc53110bbcd7f0afa20bf315d4':
  Free scanBuf in ZipFileRO
2010-08-05 12:07:48 -07:00
Alex Sakhartchouk
55e8198356 Fixing fonts to use constant color instead of variable.
Change-Id: Ia590dfed482f82b7bc748c25b7b1592efea5b68c
2010-08-05 11:24:14 -07:00
Alex Sakhartchouk
518f033b68 Adding more matrix math functions.
Fixing build.

Change-Id: Ie0f6724ba063ada94d1d44d99bbe56e21d9bd72f
2010-08-05 10:28:43 -07:00
Jason Sams
442a647424 Support constant and varying colors in ProgramFragment.
Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
2010-08-05 10:00:21 -07:00
Kenny Root
aec3e36fd4 am 2d817f75: Free scanBuf in ZipFileRO
Merge commit '2d817f75969cf3942ae3bcb9d194b9c095288dc7' into gingerbread-plus-aosp

* commit '2d817f75969cf3942ae3bcb9d194b9c095288dc7':
  Free scanBuf in ZipFileRO
2010-08-04 17:04:29 -07:00
Kenny Root
2d817f7596 Free scanBuf in ZipFileRO
In the success case, the 65kB scanBuf was not freed!

Also, get rid of annoying complaints about ssize_t from printf in error
cases.

Change-Id: If154ac19bf47637f898b4ec8c8e27c9a073a7b81
2010-08-04 16:53:56 -07:00
Romain Guy
42d530f18a Merge "Fix native crash in SkiaShader." 2010-08-04 15:35:10 -07:00
Romain Guy
6c07daf86c Fix native crash in SkiaShader.
Bug #2893733

Change-Id: I7feb9ab113fe0012cf9eb271f2b044f12a5c9c4e
2010-08-04 15:35:18 -07:00
Alex Sakhartchouk
f61f33dd38 Merge "Added ability to set font color. Propagating the name of meshes and allocations from native a3d to java" 2010-08-04 14:48:26 -07:00
Alex Sakhartchouk
fb10c16a05 Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java

Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
2010-08-04 14:45:48 -07:00
Nipun Kwatra
b70c1db70f Adding parseSizesList, getSupportedPreviewSizes to CameraParameters.
Moved functionality to parse string of sizes from getSupportedPictureSizes
to parseSizesList.
Added getSupportedPreviewSizes which returns a list of supported preview sizes.

Change-Id: I435317427c1ee9623caef435f93e95d4476b7285
2010-08-04 14:04:07 -07:00
Alex Sakhartchouk
374b4d9091 Merge "Adding onscreen frame and script time for debugging." 2010-08-03 15:08:01 -07:00
Alex Sakhartchouk
6de555001b Adding onscreen frame and script time for debugging.
Change-Id: I5780092d14d49dae556b9969b937c7768e705a64
2010-08-03 12:03:16 -07:00
Alex Sakhartchouk
a275354c54 Merge "Adding drop shadow support" 2010-08-03 10:14:51 -07:00
Romain Guy
db1938e0e6 Add support for ColorFilters.
Color filters are fully supported and can be used with shaders.

Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
2010-08-02 18:50:56 -07:00
Alex Sakhartchouk
89a524ac2d Adding drop shadow support
Change-Id: I9b1b9568d6cebc0761d96ab678b018571f705ae1
2010-08-02 17:52:30 -07:00
Romain Guy
eb4e0c3c1c Merge "Refactor Skia shaders handling." 2010-07-30 19:20:09 -07:00
Romain Guy
06f96e2652 Refactor Skia shaders handling.
With this change, Skia shaders can easily be applied to any mesh. This change also
supports ComposeShader. For instance, this can be used to blend a gradient and a
bitmap togehter and paint a string of text with the result.

Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea
2010-07-30 19:18:16 -07:00
Nipun Kwatra
51c2ec2411 Adding getSupportedPictureSizes which returns a Vector of supported Sizes.
Also added a struct 'Size' containing a width and a height field.
Modified parse_size to optionally set an end pointer pointing to the
character after the found size.

Change-Id: I51a56bbf2cb7c91d7b80a28e6bd6a559f40a1333
2010-07-30 17:51:59 -07:00