704 Commits

Author SHA1 Message Date
Stephen Hines
e9f5c1894b Properly use Long2 for "UInt2" for FieldPacker.
We were misusing this API, since it requires the additional precision of
the next size up on unsigned versions of types.

Change-Id: Ic3c87f681ac6705ae0b36a3464ce0d63737945fd
2011-01-20 18:17:25 -08:00
Jason Sams
1368436e42 Merge "Check and propogate errors from llvm." into honeycomb 2011-01-19 16:49:17 -08:00
Jason Sams
9dd9d02189 Merge "Expose unchecked copyFrom variants." into honeycomb 2011-01-19 16:27:06 -08:00
Jason Sams
fdc54a97ee Check and propogate errors from llvm.
Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
2011-01-19 16:14:21 -08:00
Jason Sams
4fa3eed8e0 Expose unchecked copyFrom variants.
Change-Id: I452d082bb4adbd578b6300bf5829dc59e91e517a
2011-01-19 15:44:38 -08:00
Joe Onorato
120856c50a Pass SkRegion::toString() through to java.
Change-Id: I3814b491c689313c1f8da811a104d913175f6268
2011-01-19 15:29:31 -08:00
Jason Sams
d1ac981497 Fix race condition between GC thread and
the teardown of RS.  The RS context was going away while
the objects were being deleted within the finializer.

Add more debugging for playCoreCommands.

Change-Id: I391f0b4db948f43f54017b47b062ab47d6a1ef64
2011-01-18 18:12:26 -08:00
Jason Sams
991040c826 Cleanup logs.
Change-Id: I206d45863752adbc71fc91cd14e7cd3a555c8c53
2011-01-18 12:42:32 -08:00
Owen Lin
4b26247e8b Merge "Change to stream decoding mode if the file descriptor cannot support seek." into honeycomb 2011-01-18 04:13:13 -08:00
Owen Lin
a9d0d47076 Change to stream decoding mode if the file descriptor cannot support seek.
bug: 3298498
Change-Id: Id7ae46bf8e885a417753edbd6648332052fee469
2011-01-18 18:25:32 +08:00
Alex Sakhartchouk
44593df6fa Merge "More docs" into honeycomb 2011-01-17 16:10:10 -08:00
Jason Sams
3240339cfe Merge "Add error checks to the copyFrom functions." into honeycomb 2011-01-17 15:48:00 -08:00
Alex Sakhartchouk
ec0d3353b1 More docs
Change-Id: I3dfea7d83bf8525efda59cef6fafa854b5aa9fe3
2011-01-17 15:23:22 -08:00
Romain Guy
1689c3459b Merge "Add BitmapFactory.Options.inMutable to load mutable bitmaps." into honeycomb 2011-01-17 13:03:16 -08:00
Romain Guy
2361098da3 Add BitmapFactory.Options.inMutable to load mutable bitmaps.
Change-Id: Iaa222127520f3aa55072d44af12ee3477908b876
2011-01-17 13:04:12 -08:00
Jamie Gennis
cf18c4788a Merge "Implement SurfaceTexture frame-available callback." into honeycomb 2011-01-16 18:15:36 -08:00
Jamie Gennis
376590d668 Implement SurfaceTexture frame-available callback.
This change implements the onFrameAvailable callback for the
SurfaceTexture java class.  It includes the C++ SurfaceTexture code as
well as the JNI and Java code to enable the callback.

Change-Id: Ifd8b8e7ad46ee70cba6da1c2e96dab8045d1ea30
2011-01-16 17:28:39 -08:00
Jason Sams
b97b251c26 Add error checks to the copyFrom functions.
Change-Id: Iac064c52eb58b05a94fa1c432304c6216256555b
2011-01-16 16:11:42 -08:00
Jason Sams
21b4103e42 unhide functions used by reflected files for SDK.
Change-Id: I7cfbfa94cb21207cc5c91e08a60a7184da3f583a
2011-01-16 15:05:52 -08:00
Dianne Hackborn
dd4a1e3825 am 7d234fab: Merge "Don\'t drop the drawable cache completely on configuration change"
* commit '7d234fabe61cd5f034fe4ff4484209fbf5130c4d':
  Don't drop the drawable cache completely on configuration change
2011-01-14 16:11:40 -08:00
Dianne Hackborn
0b08c5cb14 Merge "Don't drop the drawable cache completely on configuration change" into honeycomb 2011-01-14 15:37:28 -08:00
Christopher Lais
6efd2bad95 Don't drop the drawable cache completely on configuration change
There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared.  This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
2011-01-14 12:31:26 -08:00
Alex Sakhartchouk
0473ff1ef6 Removing things that shouldn't be public
Change-Id: I23ea748f7f4ba27307807d7e1d56e49b7c10a827
2011-01-14 12:16:02 -08:00
Christopher Lais
8d71769b9b Don't drop the drawable cache completely on configuration change
There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared.  This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
2011-01-14 00:43:16 -06:00
Alex Sakhartchouk
f5c876e82d Docs plus removing some junk per API review.
Change-Id: I45f995b656754550be68c78e467071d6e59b348f
2011-01-13 14:53:43 -08:00
Wei-Ta Chen
62cd5c9788 am 61d9ffbf: Merge "Do not merge." into gingerbread
* commit '61d9ffbfd86dfe6bacce431b8ed9eebe1cfd8178':
  Do not merge.
2011-01-13 12:06:38 -08:00
Jamie Gennis
9aba2324ac Merge "Add getTransformMatrix to the SurfaceTexture API." into honeycomb 2011-01-13 11:29:14 -08:00
Alex Sakhartchouk
623c54dd16 Documentation
Change-Id: Idb5f87f9d2c0f7fb4677b1b45c232502d66b4668
2011-01-12 17:32:36 -08:00
Jason Sams
208a1c68ee Merge "Implement more of copy2DRange*" into honeycomb 2011-01-12 15:22:09 -08:00
Jason Sams
fb9f82ca4f Implement more of copy2DRange*
Change-Id: Id6be481c4abc968df27e5bba1ed044262ec0f293
2011-01-12 14:53:25 -08:00
Stephen Hines
b11e3d2b0e Unhide more of the RS APIs.
Change-Id: I7ec5de42680a4184d3a1380ea7c35b6ba3cf13bf
2011-01-12 14:24:35 -08:00
Jason Sams
8f597fdfac Merge "Cleanup bitmap uploads Implement standalone mipmap generation." into honeycomb 2011-01-12 13:30:41 -08:00
Jason Sams
f7086090cf Cleanup bitmap uploads
Implement standalone mipmap generation.

Change-Id: Ie3a9781bbe50e2f58adca6f184d84fea50e40263
2011-01-12 13:28:37 -08:00
Romain Guy
cf894c91a9 Merge "Fix CTS test. Bug #3345445" into honeycomb 2011-01-12 12:47:30 -08:00
Romain Guy
9454fe1080 Fix CTS test.
Bug #3345445

Change-Id: I3e9fa6002d173e6c9182ee5798420829e4bd2e30
2011-01-12 12:50:05 -08:00
Alex Sakhartchouk
27d116085e Merge "Adding ability to load cubemaps from individual faces." into honeycomb 2011-01-12 11:53:42 -08:00
Jamie Gennis
b0ba48c95e Add getTransformMatrix to the SurfaceTexture API.
Change-Id: Icd11ed4982220be9d08b00498aef02531610ce1f
2011-01-12 11:28:38 -08:00
Wei-Ta Chen
4b9adfbe7d Merge "Correct the API comments." into honeycomb 2011-01-11 23:16:15 -08:00
Wei-Ta Chen
96d3b5e383 Correct the API comments.
BitmapRegionDecoder supports PNG as well.

Change-Id: I5f1b95c20c3ae87738f9814cfc16d6a4c5af2bf5
2011-01-11 23:06:56 -08:00
Wei-Ta Chen
25bce3a673 Do not merge.
Backport changes related to BitmapRegionDecoder from HoneyComb to
Gingerbread.

Bug: 3309014

////////////////////////////////////////////////////
This is a combination of 7 commits.
Revert "Do not merge."

This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82.

Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6

Fix a initialization bug in BitmapRegionDecoder.

Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5

Fix segfault when tring to throw IOException.

Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f

Fix 3122139, where previewing an attachment for the second time will
fail.

Use AutoFDSeek to mark and restore the position before we read data from
the descriptor.

Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195

Add inPreferQualityOverSpeed into BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925
Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4

Unhide inPreferQualityOverSpeed in BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925

Related changes: https://android-git.corp.google.com/g/#change,83291 and
                 https://android-git.corp.google.com/g/#change,83294

Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4

Correct the API comments.

BitmapRegionDecoder supports PNG as well.
2011-01-11 22:54:10 -08:00
Jason Sams
252c07802f Add error checks to bitmap uploads.
Fix java side calculation for pixel sizes.

Change-Id: I2636db2ccdc9a330214fe9d8b26617b33e52ec8e
2011-01-11 17:42:52 -08:00
Alex Sakhartchouk
dcc231955d Adding ability to load cubemaps from individual faces.
Change-Id: Ic8b6693f625c181e031d4393ba8fac40049da88b
2011-01-11 14:47:44 -08:00
Romain Guy
3b703f2d11 Hide Canvas.getGL()
Change-Id: I6d81cf9f43ce0c990fe30b3b3159c95ac738ae79
2011-01-10 16:42:55 -08:00
Alex Sakhartchouk
fe852e216f Updating cubemap loading code.
Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
2011-01-10 15:57:57 -08:00
Jason Sams
67e3d206ca Hide and delete some code that should not be public.
Change-Id: Ibe201c235fc81ef1fecb120d6049d6e56222462c
2011-01-09 13:49:31 -08:00
Alex Sakhartchouk
6c191768f1 Merge "Adding comments to the renderscript program classes." into honeycomb 2011-01-09 12:07:00 -08:00
Alex Sakhartchouk
df27202deb Adding comments to the renderscript program classes.
Change-Id: I989575951df1218c1e753dfa12193d560266bf11
2011-01-09 11:34:03 -08:00
Jason Sams
fa445b9353 Cleanup subdata apis
Change-Id: I70d0d5e4ca2b42f3a9cbf854fe47917cee8f46df
2011-01-07 17:04:29 -08:00
Alex Sakhartchouk
b0253ea696 Additional loading methods for fonts and a3d files.
Cleaned up error messages.

Change-Id: Id33b7149671df23c37cc11375d844a7837dac750

Change-Id: I6663ce54f7b9bbaf285935ca658d93ba417f8179
2011-01-07 11:16:08 -08:00
Jamie Gennis
6714efc5e0 Add the SurfaceTexture java class.
This class exposes to Java the application-side interface to the
SurfaceTexture C++ class.

Change-Id: I0dba42aad90257c7adbde6fa362658c0717b70d0
2011-01-06 16:05:14 -08:00