Index: content/common/gpu/media/android_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc |
index 9999130c6eb7ed73f6b73ed857d9e29f35e87bf5..a4dfebffbf0359765d6c7fdecf5f86f8f1e7c2ce 100644 |
--- a/content/common/gpu/media/android_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc |
@@ -125,7 +125,7 @@ bool AndroidVideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile, |
gl_decoder_->RestoreTextureUnitBindings(0); |
gl_decoder_->RestoreActiveTexture(); |
- surface_texture_ = new gfx::SurfaceTexture(surface_texture_id_); |
+ surface_texture_ = gfx::SurfaceTexture::Create(surface_texture_id_); |
if (!ConfigureMediaCodec()) { |
LOG(ERROR) << "Failed to create MediaCodec instance."; |