| Index: media/gpu/avda_shared_state.h
|
| diff --git a/media/gpu/avda_shared_state.h b/media/gpu/avda_shared_state.h
|
| index d98d0ad798bcd7e9d8da053d56b67029892729fe..843d4b7885cb8e14d504818e3be751456630481e 100644
|
| --- a/media/gpu/avda_shared_state.h
|
| +++ b/media/gpu/avda_shared_state.h
|
| @@ -75,6 +75,13 @@ class AVDASharedState : public base::RefCounted<AVDASharedState> {
|
| void RenderCodecBufferToSurfaceTexture(MediaCodecBridge* codec,
|
| int codec_buffer_index);
|
|
|
| + // Helper methods for interacting with |surface_texture_|. See
|
| + // gfx::SurfaceTexture for method details.
|
| + void UpdateTexImage();
|
| + // Returns a matrix that needs to be y flipped in order to match the
|
| + // StreamTextureMatrix contract. See GLStreamTextureImage::YInvertMatrix().
|
| + void GetTransformMatrix(float matrix[16]) const;
|
| +
|
| protected:
|
| virtual ~AVDASharedState();
|
|
|
| @@ -102,6 +109,9 @@ class AVDASharedState : public base::RefCounted<AVDASharedState> {
|
| // since the last call.
|
| base::TimeTicks release_time_;
|
|
|
| + // Texture matrix of the front buffer of the surface texture.
|
| + float gl_matrix_[16];
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AVDASharedState);
|
| };
|
|
|
|
|