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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 bool usesOverlayFullscreenVideo() const override; | 62 bool usesOverlayFullscreenVideo() const override; |
63 | 63 |
64 // Statistics | 64 // Statistics |
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 paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 69 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) 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 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); | 72 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, GLenum target,
Platform3DObject texture, |
| 73 GLenum internalFormat, GLenum type, GLint level, bool premultiplyAlpha,
bool flipY); |
| 74 bool copyVideoSubTextureToPlatformTexture(WebGraphicsContext3D*, GLenum targ
et, Platform3DObject texture, |
| 75 GLint level, GLint xoffset, GLint yoffset, bool premultiplyAlpha, bool f
lipY); |
73 | 76 |
74 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } | 77 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
75 | 78 |
76 bool hasAvailableVideoFrame() const; | 79 bool hasAvailableVideoFrame() const; |
77 | 80 |
78 KURL posterImageURL() const override; | 81 KURL posterImageURL() const override; |
79 | 82 |
80 // CanvasImageSource implementation | 83 // CanvasImageSource implementation |
81 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*) const override
; | 84 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*) const override
; |
82 bool isVideoElement() const override { return true; } | 85 bool isVideoElement() const override { return true; } |
(...skipping 21 matching lines...) Expand all Loading... |
104 void setDisplayMode(DisplayMode) override; | 107 void setDisplayMode(DisplayMode) override; |
105 | 108 |
106 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 109 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
107 | 110 |
108 AtomicString m_defaultPosterURL; | 111 AtomicString m_defaultPosterURL; |
109 }; | 112 }; |
110 | 113 |
111 } // namespace blink | 114 } // namespace blink |
112 | 115 |
113 #endif // HTMLVideoElement_h | 116 #endif // HTMLVideoElement_h |
OLD | NEW |