Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: content/renderer/media/webmediaplayer_ms.h

Issue 1315323006: webgl: optimize webgl.texSubImage2D(video) path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webmediaplayer_ms.h
diff --git a/content/renderer/media/webmediaplayer_ms.h b/content/renderer/media/webmediaplayer_ms.h
index dd0b5c5a8e636020e34fd5d96b9f7708c5e08fb2..be551c32a54cbf5f3cf41294f49abd18f9513400 100644
--- a/content/renderer/media/webmediaplayer_ms.h
+++ b/content/renderer/media/webmediaplayer_ms.h
@@ -117,11 +117,32 @@ class WebMediaPlayerMS
virtual unsigned audioDecodedByteCount() const;
virtual unsigned videoDecodedByteCount() const;
+ // TODO(dshwang): remove it. virtual trick allows to remove it in blink.
+ // crbug.com/504773
+ virtual bool copyVideoTextureToPlatformTexture(
+ blink::WebGraphicsContext3D* web_graphics_context,
+ unsigned int texture,
+ unsigned int internal_format,
+ unsigned int type,
+ bool premultiply_alpha,
+ bool flip_y);
+
bool copyVideoTextureToPlatformTexture(
blink::WebGraphicsContext3D* web_graphics_context,
+ unsigned int target,
unsigned int texture,
unsigned int internal_format,
unsigned int type,
+ int level,
+ bool premultiply_alpha,
+ bool flip_y) override;
+ bool copyVideoSubTextureToPlatformTexture(
+ blink::WebGraphicsContext3D* web_graphics_context,
+ unsigned int target,
+ unsigned int texture,
+ int level,
+ int xoffset,
+ int yoffset,
bool premultiply_alpha,
bool flip_y) override;

Powered by Google App Engine
This is Rietveld 408576698