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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 unsigned webkitDroppedFrameCount() const; | 64 unsigned webkitDroppedFrameCount() const; |
65 | 65 |
66 // Used by canvas to gain raw pixel access | 66 // Used by canvas to gain raw pixel access |
67 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 67 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; |
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; | |
75 | |
76 bool hasAvailableVideoFrame() const; | 74 bool hasAvailableVideoFrame() const; |
77 | 75 |
78 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it. | 76 // FIXME: Remove this when HTMLMediaElement::prepareAndLoadMediaPlayer does not depend on it. |
philipj_slow
2015/07/06 11:07:10
I guess remove this FIXME as well, don't think it'
Srirama
2015/07/09 15:19:37
Done.
| |
79 virtual KURL mediaPlayerPosterURL() override; | 77 virtual KURL posterImageURL() const override; |
80 | 78 |
81 // CanvasImageSource implementation | 79 // CanvasImageSource implementation |
82 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const override; | 80 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const override; |
83 virtual bool isVideoElement() const override { return true; } | 81 virtual bool isVideoElement() const override { return true; } |
84 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 82 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; |
85 virtual FloatSize elementSize() const override; | 83 virtual FloatSize elementSize() const override; |
86 virtual const KURL& sourceURL() const override { return currentSrc(); } | 84 virtual const KURL& sourceURL() const override { return currentSrc(); } |
87 | 85 |
88 virtual bool isHTMLVideoElement() const override { return true; } | 86 virtual bool isHTMLVideoElement() const override { return true; } |
89 | 87 |
(...skipping 16 matching lines...) Expand all Loading... | |
106 virtual void setDisplayMode(DisplayMode) override; | 104 virtual void setDisplayMode(DisplayMode) override; |
107 | 105 |
108 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 106 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
109 | 107 |
110 AtomicString m_defaultPosterURL; | 108 AtomicString m_defaultPosterURL; |
111 }; | 109 }; |
112 | 110 |
113 } // namespace blink | 111 } // namespace blink |
114 | 112 |
115 #endif // HTMLVideoElement_h | 113 #endif // HTMLVideoElement_h |
OLD | NEW |