Index: third_party/WebKit/public/platform/WebMediaPlayer.h |
diff --git a/third_party/WebKit/public/platform/WebMediaPlayer.h b/third_party/WebKit/public/platform/WebMediaPlayer.h |
index 64b0939da7dae7f9ee3875445f7415a092f0aab0..ca6e294e4dbabf596d698c6d19581e502cc14a77 100644 |
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h |
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h |
@@ -177,19 +177,19 @@ class WebMediaPlayer { |
// TODO(kbr): remove non-|target| version. crbug.com/349871 |
// |
- // Do a GPU-GPU texture copy of the natural size of the current |
- // video frame to |texture|. Caller is responsible for allocating |
- // |texture| with the appropriate size. If the copy is impossible or |
- // fails, it returns false. |
+ // Do a GPU-GPU texture copy of the current video frame to |texture|, |
+ // reallocating |texture| at the appropriate size with given internal |
+ // format and type if necessary. If the copy is impossible or fails, it |
+ // returns false. |
virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
unsigned texture, |
+ unsigned internalFormat, |
+ unsigned type, |
bool premultiplyAlpha, |
bool flipY) { |
return false; |
} |
- // TODO(kbr): when updating calling code to use this, remove the |
- // |internalFormat| and |type| parameters. crbug.com/349871 |
// Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns |
// false. |
virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |