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

Side by Side Diff: Source/WebCore/platform/graphics/MediaPlayer.cpp

Issue 13685002: Enable video painting on Canvas for Chrome on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 void MediaPlayer::paint(GraphicsContext* p, const IntRect& r) 720 void MediaPlayer::paint(GraphicsContext* p, const IntRect& r)
721 { 721 {
722 m_private->paint(p, r); 722 m_private->paint(p, r);
723 } 723 }
724 724
725 void MediaPlayer::paintCurrentFrameInContext(GraphicsContext* p, const IntRect& r) 725 void MediaPlayer::paintCurrentFrameInContext(GraphicsContext* p, const IntRect& r)
726 { 726 {
727 m_private->paintCurrentFrameInContext(p, r); 727 m_private->paintCurrentFrameInContext(p, r);
728 } 728 }
729 729
730 bool MediaPlayer::copyVideoTextureToCanvas(GraphicsContext* context, GraphicsCon text3D* context3D)
731 {
732 return m_private->copyVideoTextureToCanvas(context, context3D);
733 }
734
730 bool MediaPlayer::copyVideoTextureToPlatformTexture(GraphicsContext3D* context, Platform3DObject texture, GC3Dint level, GC3Denum type, GC3Denum internalFormat, bool premultiplyAlpha, bool flipY) 735 bool MediaPlayer::copyVideoTextureToPlatformTexture(GraphicsContext3D* context, Platform3DObject texture, GC3Dint level, GC3Denum type, GC3Denum internalFormat, bool premultiplyAlpha, bool flipY)
731 { 736 {
732 return m_private->copyVideoTextureToPlatformTexture(context, texture, level, type, internalFormat, premultiplyAlpha, flipY); 737 return m_private->copyVideoTextureToPlatformTexture(context, texture, level, type, internalFormat, premultiplyAlpha, flipY);
733 } 738 }
734 739
735 MediaPlayer::SupportsType MediaPlayer::supportsType(const ContentType& contentTy pe, const String& keySystem, const KURL& url, const MediaPlayerSupportsTypeClien t* client) 740 MediaPlayer::SupportsType MediaPlayer::supportsType(const ContentType& contentTy pe, const String& keySystem, const KURL& url, const MediaPlayerSupportsTypeClien t* client)
736 { 741 {
737 String type = contentType.type().lower(); 742 String type = contentType.type().lower();
738 // The codecs string is not lower-cased because MP4 values are case sensitiv e 743 // The codecs string is not lower-cased because MP4 values are case sensitiv e
739 // per http://tools.ietf.org/html/rfc4281#page-7. 744 // per http://tools.ietf.org/html/rfc4281#page-7.
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 if (!m_private) 1155 if (!m_private)
1151 return; 1156 return;
1152 1157
1153 m_private->simulateAudioInterruption(); 1158 m_private->simulateAudioInterruption();
1154 } 1159 }
1155 #endif 1160 #endif
1156 1161
1157 } 1162 }
1158 1163
1159 #endif 1164 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698