3212 Commits

Author SHA1 Message Date
Jason Sams
2698536b3f Fix error checks on compute context creation.
Remove GL init for compute scripts.

Change-Id: I1bce8e4112babf4345fa56a30a9bed753734d8d6
2011-05-03 17:27:26 -07:00
Iliyan Malchev
b2a153adc9 frameworks/base: android_native_buffer_t -> ANativeWindowBuffer
Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 16:40:14 -07:00
Iliyan Malchev
4d7c1ce651 frameworks/base: make the ANativeWindow query() method const
query() does not modify the object's data, so it needs to be a const method

Change-Id: I67c40a3c865461e6f1cc2193fd2d74286ff6ac8f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 15:49:40 -07:00
Jason Sams
629b565162 Merge "Try fixing auto data inlining again." 2011-05-03 14:52:22 -07:00
Eino-Ville Talvala
3723396c7a Merge "Add an auto-exposure lock feature to the Camera API." 2011-05-03 11:07:33 -07:00
Romain Guy
df0a7fbdcf Merge "Allows to render with an OpenGL context inside a TextureView." 2011-05-02 18:33:26 -07:00
Romain Guy
8f0095cd33 Allows to render with an OpenGL context inside a TextureView.
Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7
2011-05-02 18:32:29 -07:00
Jason Sams
b96e9517af Try fixing auto data inlining again.
Change-Id: I95113db85551cbee774250eacb69553af1cf27bc
2011-05-02 16:29:42 -07:00
Chet Haase
7c212b2749 Merge "Line endcaps for AA lines are now antialiased." 2011-05-02 15:20:15 -07:00
Chet Haase
99585adeb4 Line endcaps for AA lines are now antialiased.
Also fixed other minor issues with AA and line rendering.

Change-Id: Icd4638d27c70e2ee0f28b5d9a2b97d8b29e8ac4d
2011-05-02 15:08:38 -07:00
Alex Sakhartchouk
d224c64a1f Merge "Moving renderscript GL code into the HAL This change affects - shaders - meshes - fonts - quad rendering" 2011-05-02 14:35:20 -07:00
Jason Sams
0be97d8b5e Temporarly disable auto-inbanding.
Change-Id: Ia83389c094914f0bb69bff8f6965ae445c89de07
2011-05-02 14:31:28 -07:00
Eino-Ville Talvala
3773eef4e3 Add an auto-exposure lock feature to the Camera API.
Adds a new camera parameter for locking auto-exposure to its current
value. Also adds a function for checking if auto-exposure lock is
supported by the current platform.

Hidden for now.

Change-Id: Id452371191ab220318ce2cb98b8ee91bdde9aab6
2011-05-02 09:36:06 -07:00
Alex Sakhartchouk
4a36b45c72 Moving renderscript GL code into the HAL
This change affects
 - shaders
 - meshes
 - fonts
 - quad rendering

Change-Id: I2a53acb4cd1fa8f4c6e67668f6ee969f3d7f7aa1
2011-04-29 16:49:08 -07:00
Jason Sams
eccf6c6483 Fix bug 4355588
With auto inbanding the fifo didn't reserve the correct size.
Caused failure on fifo wrap.

Change-Id: Ie78e7bef5286f68c6239f79ee2f284fd99bdacc3
2011-04-29 16:23:40 -07:00
Jason Sams
3ea208a843 Merge "Pipe rsa function though the RS api table." 2011-04-29 14:51:37 -07:00
Jason Sams
7da9ff5b97 Merge "Fix fifo size check code." 2011-04-29 14:50:09 -07:00
Jason Sams
c1f52d3f75 Fix fifo size check code.
Change-Id: If4a1874e34409e99c3fe63ff06e2b97e3369049d
2011-04-29 14:46:57 -07:00
Romain Guy
ad44445c77 Merge "New widget: TextureView Bug #4343984" 2011-04-28 18:47:01 -07:00
Romain Guy
aa6c24c21c New widget: TextureView
Bug #4343984

TextureView can be used to render media content (video, OpenGL,
RenderScript) inside a View.

The key difference with SurfaceView is that TextureView does
not create a new Surface. This gives the ability to seamlessly
transform, animate, fade, etc. a TextureView, which was hard
if not impossible to do with a SurfaceView.
A TextureView also interacts perfectly with ScrollView,
ListView, etc. It allows application to embed media content
in a much more flexible way than before.

For instance, to render the camera preview at 50% opacity,
all you need to do is the following:

mTextureView.setAlpha(0.5f);
Camera c = Camera.open();
c.setPreviewTexture(mTextureView.getSurfaceTexture());
c.startPreview();

TextureView uses a SurfaceTexture to get the job done. More
APIs are required to make it easy to create OpenGL contexts
for a TextureView. It can currently be done with a bit of
JNI code.

Change-Id: Iaa7953097ab5beb8437bcbbfa03b2df5b7f80cd7
2011-04-28 18:46:19 -07:00
Jason Sams
c576537166 Pipe rsa function though the RS api table.
Change-Id: Ic8a3bef5d337be1d8fc5ca961eec6be4761701c5
2011-04-28 18:26:48 -07:00
Jamie Gennis
ca2773bc45 Merge "libgui: enable tests in the 'tests' build." 2011-04-28 15:03:56 -07:00
Jason Sams
332d66d6c5 Merge "Start implementing control side forEach." 2011-04-27 23:00:25 -07:00
Mathias Agopian
431d5cf7d0 Merge "Fix uninitialized variable in SurfaceTexture" 2011-04-27 19:01:01 -07:00
Mathias Agopian
926340cf56 Fix uninitialized variable in SurfaceTexture
Change-Id: Ie77cdad481fc0522ff5ea3b7e14ce94e07150793
2011-04-27 18:58:46 -07:00
Jason Sams
a08526ac42 Start implementing control side forEach.
Change-Id: I2d77d908cbb64b26071d9d5a3421f0b195342d2c
2011-04-27 15:12:49 -07:00
Chet Haase
75e3ef048d Merge "Fix various hw-accelerated line/point bugs" 2011-04-27 14:26:40 -07:00
Romain Guy
2ef1ce494c Merge "Correctly compute tex coords for rect layers. Bug #4192695" 2011-04-27 14:23:36 -07:00
Chet Haase
8a5cc92a15 Fix various hw-accelerated line/point bugs
All accelerated lines are now rendered as quads. Hairlines used to
be rendered as GL_LINES, but these lines don't render the same as our
non-accelerated lines, so we're using quads for everything. Also, fixed
a bug in the way that we were offsetting quads (and not offseting points)
to ensure that our lines/points actuall start on the same pixels as
Skia's.

Change-Id: I51b923cc08a9858444c430ba07bc8aa0c83cbe6a
2011-04-27 14:23:29 -07:00
Romain Guy
9fc27819d7 Correctly compute tex coords for rect layers.
Bug #4192695

This change also fixes Javadoc links in the framework.

Change-Id: Ia548bcb18baba5d6fe6a4a04a2278e3a3bd465b2
2011-04-27 14:21:41 -07:00
Jason Sams
36f873c765 Merge "Cleanup rs.spec file and code generator." 2011-04-27 13:20:39 -07:00
Mathias Agopian
faee9c397d Merge "Report errors when eglCreateImageKHR fails" 2011-04-26 18:05:23 -07:00
Jamie Gennis
8f9f2fd43b libgui: enable tests in the 'tests' build.
This change makes the libgui makefile recurse into the tests directory
so that the tests get built by a top-level make when
TARGET_BUILD_VARIANT=tests.

Change-Id: I6f623cc4b86dfeb00b9d21823316dbd9def23110
2011-04-26 17:26:37 -07:00
Romain Guy
2d039219ad Merge "Apply shaders/filters to text drop shadows. Bug #4318323" 2011-04-26 15:35:27 -07:00
Romain Guy
740bf2bb2e Apply shaders/filters to text drop shadows.
Bug #4318323

This change also fixes the fact that shaders were not modulated
by the paint's color when drawing paths.

Change-Id: Id88804143aea06c895d4cbcdbe106d660230aa5a
2011-04-26 15:33:10 -07:00
Mathias Agopian
6fad64c747 Report errors when eglCreateImageKHR fails
Change-Id: Ica39b72ac2505675e619ef4994bd67b98bf6e7da
2011-04-26 15:03:27 -07:00
Jason Sams
65bdaf1c6d Cleanup rs.spec file and code generator.
Change-Id: I369e36b222ff962fc6835bc550435c2940e2b5fd
2011-04-26 14:50:40 -07:00
Stephen Hines
64e00980a3 Merge "Start ICS header cleanup and finish type matrix." 2011-04-26 13:45:51 -07:00
Kenny Root
87dfce4307 am fbb0e9f9: am bb93dad9: am bb10986c: am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"
* commit 'fbb0e9f9846e185ba8ded63d754c4e61b1499b90':
  libutils: Fix an improper const-cast in RefBase
2011-04-26 12:46:04 -07:00
Kenny Root
fbb0e9f984 am bb93dad9: am bb10986c: am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"
* commit 'bb93dad9250c0ee8330ab37bbdcd2eb8bfc0f930':
  libutils: Fix an improper const-cast in RefBase
2011-04-26 11:45:46 -07:00
Kenny Root
bb10986c3d am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"
* commit '13ce221e4316f7956ba072e774a7b97646e5d99b':
  libutils: Fix an improper const-cast in RefBase
2011-04-26 11:32:22 -07:00
Jamie Gennis
84baa7f639 Merge "EGL: Allow creating a SurfaceTexture EGLSurface." 2011-04-25 17:00:19 -07:00
Mathias Agopian
9e797784d5 Merge "libgui: Fix the tests so they build." 2011-04-25 16:58:01 -07:00
Jamie Gennis
7868c64fff EGL: Allow creating a SurfaceTexture EGLSurface.
This change removes the check that disallowed the creation of an
EGLSurface that would send frames to a SurfaceTexture.

Change-Id: I44c6d5df503cc676a88144d72d39b414692ce4c9
2011-04-25 16:41:11 -07:00
Jamie Gennis
5dbf2ed575 libgui: Fix the tests so they build.
Change-Id: I7205b0819e5801ac549109ff562c3ab1b113d176
2011-04-25 16:40:05 -07:00
Jason Sams
6cc888e77e Start ICS header cleanup and finish type matrix.
Change-Id: If65f96f08c958d330862c543d85dd9d4a0f90e06
2011-04-25 16:09:48 -07:00
Chet Haase
1a2210ced1 Merge "Minor cleanup in GLrenderer code" 2011-04-25 14:51:48 -07:00
Chet Haase
6fca9884b3 Minor cleanup in GLrenderer code
Changed the way we use bitcodes for one of the rendering
options to make the code cleaner.

Change-Id: Ifaa965f228dbdad297a40da93bfbe63373986e35
2011-04-25 14:50:04 -07:00
Alex Sakhartchouk
e7c4a7565c Modifying libRS internal communication to handle network rendering.
Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
2011-04-25 14:30:27 -07:00
Chet Haase
cc5a7d2328 Merge "Fix bitfield bug with vertex shader selection" 2011-04-25 12:56:34 -07:00