| Index: gpu/ipc/service/stream_texture_android.cc
|
| diff --git a/gpu/ipc/service/stream_texture_android.cc b/gpu/ipc/service/stream_texture_android.cc
|
| index 49ad894acc0d18cfaf7f6dcc67d4b5ecf93eac23..1cb840c18b8bee0febfa0ed728f72f5f65babe42 100644
|
| --- a/gpu/ipc/service/stream_texture_android.cc
|
| +++ b/gpu/ipc/service/stream_texture_android.cc
|
| @@ -91,8 +91,11 @@ StreamTexture::~StreamTexture() {
|
|
|
| // gpu::gles2::GLStreamTextureMatrix implementation
|
| void StreamTexture::GetTextureMatrix(float xform[16]) {
|
| - UpdateTexImage();
|
| - surface_texture_->GetTransformMatrix(xform);
|
| + if (surface_texture_) {
|
| + UpdateTexImage();
|
| + surface_texture_->GetTransformMatrix(current_matrix_);
|
| + }
|
| + memcpy(xform, current_matrix_, sizeof(current_matrix_));
|
| }
|
|
|
| void StreamTexture::OnWillDestroyStub() {
|
|
|