| 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 // Statistics | 65 // Statistics |
| 66 unsigned webkitDecodedFrameCount() const; | 66 unsigned webkitDecodedFrameCount() const; |
| 67 unsigned webkitDroppedFrameCount() const; | 67 unsigned webkitDroppedFrameCount() const; |
| 68 | 68 |
| 69 // Used by canvas to gain raw pixel access | 69 // Used by canvas to gain raw pixel access |
| 70 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 70 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; |
| 71 | 71 |
| 72 // Used by WebGL to do GPU-GPU textures copy if possible. | 72 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 73 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint t
exture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flipY); | 73 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, GLuint t
exture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flipY); |
| 74 | 74 |
| 75 // Used by WebGL to do CPU-GPU texture upload if possible. |
| 76 bool texImageImpl(const char* functionID, GLenum target, gpu::gles2::GLES2In
terface*, GLint level, GLint internalformat, GLenum format, GLenum type, GLint x
offset, GLint yoffset, GLint zoffset, bool flipY, bool premultiplyAlpha); |
| 77 |
| 75 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } | 78 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } |
| 76 | 79 |
| 77 bool hasAvailableVideoFrame() const; | 80 bool hasAvailableVideoFrame() const; |
| 78 | 81 |
| 79 KURL posterImageURL() const override; | 82 KURL posterImageURL() const override; |
| 80 | 83 |
| 81 // CanvasImageSource implementation | 84 // CanvasImageSource implementation |
| 82 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi
nt, SnapshotReason, const FloatSize&) const override; | 85 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi
nt, SnapshotReason, const FloatSize&) const override; |
| 83 bool isVideoElement() const override { return true; } | 86 bool isVideoElement() const override { return true; } |
| 84 bool wouldTaintOrigin(SecurityOrigin*) const override; | 87 bool wouldTaintOrigin(SecurityOrigin*) const override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 109 void setDisplayMode(DisplayMode) override; | 112 void setDisplayMode(DisplayMode) override; |
| 110 | 113 |
| 111 Member<HTMLImageLoader> m_imageLoader; | 114 Member<HTMLImageLoader> m_imageLoader; |
| 112 | 115 |
| 113 AtomicString m_defaultPosterURL; | 116 AtomicString m_defaultPosterURL; |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 } // namespace blink | 119 } // namespace blink |
| 117 | 120 |
| 118 #endif // HTMLVideoElement_h | 121 #endif // HTMLVideoElement_h |
| OLD | NEW |