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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 unsigned webkitDecodedFrameCount() const; | 65 unsigned webkitDecodedFrameCount() const; |
66 unsigned webkitDroppedFrameCount() const; | 66 unsigned webkitDroppedFrameCount() const; |
67 | 67 |
68 // Used by canvas to gain raw pixel access | 68 // Used by canvas to gain raw pixel access |
69 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; | 69 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; |
70 | 70 |
71 // Used by WebGL to do GPU-GPU textures copy if possible. | 71 // Used by WebGL to do GPU-GPU textures copy if possible. |
72 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi
ned in Source/WebCore/platform/graphics/MediaPlayer.h. | 72 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi
ned in Source/WebCore/platform/graphics/MediaPlayer.h. |
73 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA
lpha, bool flipY); | 73 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA
lpha, bool flipY); |
74 | 74 |
75 bool shouldDisplayPosterImage() const { return displayMode() == Poster || di
splayMode() == PosterWaitingForVideo; } | 75 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
76 | 76 |
77 KURL posterImageURL() const; | 77 KURL posterImageURL() const; |
78 | 78 |
79 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. | 79 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d
epend on it. |
80 virtual KURL mediaPlayerPosterURL() override; | 80 virtual KURL mediaPlayerPosterURL() override; |
81 | 81 |
82 // CanvasImageSource implementation | 82 // CanvasImageSource implementation |
83 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; | 83 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const override; |
84 virtual bool isVideoElement() const override { return true; } | 84 virtual bool isVideoElement() const override { return true; } |
85 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; | 85 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; |
(...skipping 22 matching lines...) Expand all Loading... |
108 virtual void setDisplayMode(DisplayMode) override; | 108 virtual void setDisplayMode(DisplayMode) override; |
109 | 109 |
110 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 110 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
111 | 111 |
112 AtomicString m_defaultPosterURL; | 112 AtomicString m_defaultPosterURL; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 #endif // HTMLVideoElement_h | 117 #endif // HTMLVideoElement_h |
OLD | NEW |