OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Used by WebGL to do GPU-GPU textures copy if possible. | 69 // Used by WebGL to do GPU-GPU textures copy if possible. |
70 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); | 70 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); |
71 | 71 |
72 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } | 72 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
73 | 73 |
74 KURL posterImageURL() const; | 74 KURL posterImageURL() const; |
75 | 75 |
76 bool hasAvailableVideoFrame() const; | 76 bool hasAvailableVideoFrame() const; |
77 | 77 |
78 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. | 78 // FIXME: Remove this when HTMLMediaElement::prepareAndLoadMediaPlayer does
not depend on it. |
79 virtual KURL mediaPlayerPosterURL() override; | 79 virtual KURL mediaPlayerPosterURL() override; |
80 | 80 |
81 // CanvasImageSource implementation | 81 // CanvasImageSource implementation |
82 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; | 82 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; |
83 virtual bool isVideoElement() const override { return true; } | 83 virtual bool isVideoElement() const override { return true; } |
84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; |
85 virtual FloatSize elementSize() const override; | 85 virtual FloatSize elementSize() const override; |
86 virtual const KURL& sourceURL() const override { return currentSrc(); } | 86 virtual const KURL& sourceURL() const override { return currentSrc(); } |
87 | 87 |
88 virtual bool isHTMLVideoElement() const override { return true; } | 88 virtual bool isHTMLVideoElement() const override { return true; } |
(...skipping 17 matching lines...) Expand all Loading... |
106 virtual void setDisplayMode(DisplayMode) override; | 106 virtual void setDisplayMode(DisplayMode) override; |
107 | 107 |
108 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 108 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
109 | 109 |
110 AtomicString m_defaultPosterURL; | 110 AtomicString m_defaultPosterURL; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif // HTMLVideoElement_h | 115 #endif // HTMLVideoElement_h |
OLD | NEW |