Chromium Code Reviews| Index: ui/gl/android/surface_texture.h |
| diff --git a/ui/gl/android/surface_texture.h b/ui/gl/android/surface_texture.h |
| index 62e375f796f45959e1ca0de2e37b7144c5e66ba3..01573e5730cefc3a8a56a8aaf887fd05e23f4a39 100644 |
| --- a/ui/gl/android/surface_texture.h |
| +++ b/ui/gl/android/surface_texture.h |
| @@ -21,7 +21,7 @@ namespace gfx { |
| class GL_EXPORT SurfaceTexture |
| : public base::RefCountedThreadSafe<SurfaceTexture>{ |
| public: |
| - explicit SurfaceTexture(int texture_id); |
| + SurfaceTexture(int texture_id, bool single_buffered = false); |
|
reveman
2014/03/08 14:10:20
s/single_buffered/single_buffer_mode/ to be consis
sohanjg
2014/03/08 14:20:15
Done.
|
| // Set the listener callback, which will be invoked on the same thread that |
| // is being called from here for registration. |
| @@ -33,6 +33,10 @@ class GL_EXPORT SurfaceTexture |
| // Update the texture image to the most recent frame from the image stream. |
| void UpdateTexImage(); |
| + // Releases the the texture content. This is needed in single buffered mode |
|
reveman
2014/03/08 14:10:20
s/the the/the/
sohanjg
2014/03/08 14:20:15
Done.
|
| + // to allow the image content producer to take ownership of the image buffer |
|
reveman
2014/03/08 14:10:20
Comment should end with a period ".".
sohanjg
2014/03/08 14:20:15
Done.
|
| + void ReleaseTexImage(); |
| + |
| // Retrieve the 4x4 texture coordinate transform matrix associated with the |
| // texture image set by the most recent call to updateTexImage. |
| void GetTransformMatrix(float mtx[16]); |