| Index: webkit/media/webvideoframe_impl.cc
|
| diff --git a/webkit/media/webvideoframe_impl.cc b/webkit/media/webvideoframe_impl.cc
|
| index 3e843f4911638ab006966d0f473bf3b0ba2b0596..58cfa627a70a7e3c7ee11f4e01ce8391091bedbd 100644
|
| --- a/webkit/media/webvideoframe_impl.cc
|
| +++ b/webkit/media/webvideoframe_impl.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -108,4 +108,10 @@ unsigned WebVideoFrameImpl::textureId() const {
|
| return video_frame_->texture_id();
|
| }
|
|
|
| +unsigned WebVideoFrameImpl::textureTarget() const {
|
| + if (!video_frame_.get() || format() != FormatNativeTexture)
|
| + return 0;
|
| + return video_frame_->texture_target();
|
| +}
|
| +
|
| } // namespace webkit_media
|
|
|