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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.h

Issue 2562003003: Fix the size of video textures uploaded to WebGL. (Closed)
Patch Set: Rebased. Fixed Android build. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool usesOverlayFullscreenVideo() const override; 65 bool usesOverlayFullscreenVideo() const override;
66 66
67 // Statistics 67 // Statistics
68 unsigned webkitDecodedFrameCount() const; 68 unsigned webkitDecodedFrameCount() const;
69 unsigned webkitDroppedFrameCount() const; 69 unsigned webkitDroppedFrameCount() const;
70 70
71 // Used by canvas to gain raw pixel access 71 // Used by canvas to gain raw pixel access
72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; 72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const;
73 73
74 // Used by WebGL to do GPU-GPU textures copy if possible. 74 // Used by WebGL to do GPU-GPU textures copy if possible.
75 // The caller is responsible for allocating the destination texture.
75 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 76 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
76 GLuint texture, 77 GLuint texture,
77 GLenum internalFormat,
78 GLenum type,
79 bool premultiplyAlpha, 78 bool premultiplyAlpha,
80 bool flipY); 79 bool flipY);
81 80
82 // Used by WebGL to do CPU-GPU texture upload if possible. 81 // Used by WebGL to do CPU-GPU texture upload if possible.
83 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, 82 bool texImageImpl(WebMediaPlayer::TexImageFunctionID,
84 GLenum target, 83 GLenum target,
85 gpu::gles2::GLES2Interface*, 84 gpu::gles2::GLES2Interface*,
86 GLint level, 85 GLint level,
87 GLint internalformat, 86 GLint internalformat,
88 GLenum format, 87 GLenum format,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void setDisplayMode(DisplayMode) override; 141 void setDisplayMode(DisplayMode) override;
143 142
144 Member<HTMLImageLoader> m_imageLoader; 143 Member<HTMLImageLoader> m_imageLoader;
145 144
146 AtomicString m_defaultPosterURL; 145 AtomicString m_defaultPosterURL;
147 }; 146 };
148 147
149 } // namespace blink 148 } // namespace blink
150 149
151 #endif // HTMLVideoElement_h 150 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « media/renderers/skcanvas_video_renderer.cc ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698