inline HTMLVideoElement::HTMLVideoElement(Document& document)
: HTMLMediaElement(videoTag, document)
{
- ScriptWrappable::init(this);
if (document.settings())
m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPosterURL());
}
// Notify the player when the poster image URL changes.
if (webMediaPlayer())
webMediaPlayer()->setPoster(posterImageURL());
- } else
+ } else {
HTMLMediaElement::parseAttribute(name, value);
+ }
}
bool HTMLVideoElement::supportsFullscreen() const
if (!document().page())
return false;
- if (!player())
+ if (!webMediaPlayer())
return false;
return true;
return;
WebCanvas* canvas = context->canvas();
- webMediaPlayer()->paint(canvas, destRect, context->getNormalizedAlpha());
+ SkXfermode::Mode mode = WebCoreCompositeToSkiaComposite(context->compositeOperation(), context->blendModeOperation());
+ webMediaPlayer()->paint(canvas, destRect, context->getNormalizedAlpha(), mode);
}
bool HTMLVideoElement::copyVideoTextureToPlatformTexture(WebGraphicsContext3D* context, Platform3DObject texture, GLint level, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flipY)
if (!webMediaPlayer())
return false;
- if (!Extensions3DUtil::canUseCopyTextureCHROMIUM(internalFormat, type, level) || !context->makeContextCurrent())
+ if (!Extensions3DUtil::canUseCopyTextureCHROMIUM(internalFormat, type, level))
return false;
return webMediaPlayer()->copyVideoTextureToPlatformTexture(context, texture, level, internalFormat, type, premultiplyAlpha, flipY);