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

Unified Diff: media/renderers/skcanvas_video_renderer.h

Issue 1418513016: Revert of webgl: optimize webgl.texSubImage2D(video) path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/skcanvas_video_renderer.h
diff --git a/media/renderers/skcanvas_video_renderer.h b/media/renderers/skcanvas_video_renderer.h
index 03de24a55d50a5a00a6e62f5f0b2bf45bd2b8c89..71e77ff3525c3f3561aef2ab76ecb4dff051d5e4 100644
--- a/media/renderers/skcanvas_video_renderer.h
+++ b/media/renderers/skcanvas_video_renderer.h
@@ -65,33 +65,14 @@
// Copy the contents of texture of |video_frame| to texture |texture|.
// |level|, |internal_format|, |type| specify target texture |texture|.
// The format of |video_frame| must be VideoFrame::NATIVE_TEXTURE.
- struct MEDIA_EXPORT CopyFrameSingleTextureParams {
- enum CopyType { FullCopy, SubCopy };
- CopyFrameSingleTextureParams(CopyType copy_type,
- unsigned target,
- unsigned texture,
- unsigned internal_format,
- unsigned type,
- int level,
- int xoffset,
- int yoffset,
- bool premultiply_alpha,
- bool flip_y);
- CopyType copy_type;
- unsigned int target;
- unsigned int texture;
- unsigned int internal_format;
- unsigned int type;
- int level;
- int xoffset;
- int yoffset;
- bool premultiply_alpha;
- bool flip_y;
- };
static void CopyVideoFrameSingleTextureToGLTexture(
gpu::gles2::GLES2Interface* gl,
VideoFrame* video_frame,
- const CopyFrameSingleTextureParams& params);
+ unsigned int texture,
+ unsigned int internal_format,
+ unsigned int type,
+ bool premultiply_alpha,
+ bool flip_y);
private:
void ResetCache();
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698