diff options
author | sievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-28 22:04:42 +0000 |
---|---|---|
committer | sievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-28 22:04:42 +0000 |
commit | b0af4f572f1e082a876a1e87eb2933c5876e0ba0 (patch) | |
tree | dfa113ede64291cf4fd1604d992e64fb901fef79 /gpu/gpu.gyp | |
parent | a09ef7e5fade0f4f62157aae616f3929b8cbba53 (diff) | |
download | chromium_src-b0af4f572f1e082a876a1e87eb2933c5876e0ba0.zip chromium_src-b0af4f572f1e082a876a1e87eb2933c5876e0ba0.tar.gz chromium_src-b0af4f572f1e082a876a1e87eb2933c5876e0ba0.tar.bz2 |
External stream texture support.
This adds a GL_CHROMIUM_stream_texture extension with an abstract interface
that can be used to allow a consumer to render from a stream of textures being produced externally.
It adds the following functionality:
* GLuint glCreateStreamTextureCHROMIUM(GLuint texture)
This API takes a texture id and creates a StreamTexture object associated with the texture in the GPU process that can be implemented in a platform-specific way.
The returned handle is supposed to identify the stream endpoint. Connecting this to a producer is outside the scope of this change.
* GLvoid glDestroyStreamTextureCHROMIUM(GLuint texture)
Deletes the StreamTexture object associated with the texture and marks the texture as not special anymore.
* BindTexture() will invoke method StreamTexture::Update() if the target is GL_TEXTURE_EXTERNAL_OES and the texture is marked as 'stream texture'.
TEST=added unit tests
Review URL: http://codereview.chromium.org/7754033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gpu.gyp')
-rw-r--r-- | gpu/gpu.gyp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp index dbb7cee..399f307 100644 --- a/gpu/gpu.gyp +++ b/gpu/gpu.gyp @@ -229,6 +229,8 @@ 'command_buffer/service/shader_manager.cc', 'command_buffer/service/shader_translator.h', 'command_buffer/service/shader_translator.cc', + 'command_buffer/service/stream_texture.h', + 'command_buffer/service/stream_texture_manager.h', 'command_buffer/service/texture_manager.h', 'command_buffer/service/texture_manager.cc', 'command_buffer/service/vertex_attrib_manager.h', @@ -305,6 +307,10 @@ 'command_buffer/service/renderbuffer_manager_unittest.cc', 'command_buffer/service/shader_manager_unittest.cc', 'command_buffer/service/shader_translator_unittest.cc', + 'command_buffer/service/stream_texture_mock.cc', + 'command_buffer/service/stream_texture_mock.h', + 'command_buffer/service/stream_texture_manager_mock.cc', + 'command_buffer/service/stream_texture_manager_mock.h', 'command_buffer/service/test_helper.cc', 'command_buffer/service/test_helper.h', 'command_buffer/service/texture_manager_unittest.cc', |