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

Unified Diff: webkit/media/webvideoframe_impl.cc

Issue 8897022: Revert 113895 - <video> decode in hardware! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « webkit/media/webvideoframe_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webvideoframe_impl.cc
===================================================================
--- webkit/media/webvideoframe_impl.cc (revision 113907)
+++ webkit/media/webvideoframe_impl.cc (working copy)
@@ -43,8 +43,6 @@
COMPILE_ASSERT_MATCHING_ENUM(FormatNV12, NV12);
COMPILE_ASSERT_MATCHING_ENUM(FormatEmpty, EMPTY);
COMPILE_ASSERT_MATCHING_ENUM(FormatASCII, ASCII);
-COMPILE_ASSERT_MATCHING_ENUM(FormatI420, I420);
-COMPILE_ASSERT_MATCHING_ENUM(FormatNativeTexture, NATIVE_TEXTURE);
WebVideoFrame::Format WebVideoFrameImpl::format() const {
if (video_frame_.get())
@@ -77,15 +75,9 @@
}
const void* WebVideoFrameImpl::data(unsigned plane) const {
- if (!video_frame_.get() || format() == FormatNativeTexture)
- return NULL;
- return static_cast<const void*>(video_frame_->data(plane));
+ if (video_frame_.get())
+ return static_cast<const void*>(video_frame_->data(plane));
+ return NULL;
}
-unsigned WebVideoFrameImpl::textureId() const {
- if (!video_frame_.get() || format() != FormatNativeTexture)
- return 0;
- return video_frame_->texture_id();
-}
-
} // namespace webkit_media
Property changes on: webkit/media/webvideoframe_impl.cc
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/src/webkit/media/webvideoframe_impl.cc:r3734-4217,4606-5108,5177-5263
« no previous file with comments | « webkit/media/webvideoframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698