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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 73 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; |
74 | 74 |
75 // Used by WebGL to do GPU-GPU textures copy if possible. | 75 // Used by WebGL to do GPU-GPU textures copy if possible. |
76 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | 76 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
77 GLuint texture, | 77 GLuint texture, |
78 GLenum internalFormat, | 78 GLenum internalFormat, |
79 GLenum type, | 79 GLenum type, |
80 bool premultiplyAlpha, | 80 bool premultiplyAlpha, |
81 bool flipY); | 81 bool flipY); |
82 | 82 |
| 83 // Used by WebGL to do CPU-GPU texture upload if possible. |
| 84 bool texImageImpl(const char* functionID, |
| 85 GLenum target, |
| 86 gpu::gles2::GLES2Interface*, |
| 87 GLint level, |
| 88 GLint internalformat, |
| 89 GLenum format, |
| 90 GLenum type, |
| 91 GLint xoffset, |
| 92 GLint yoffset, |
| 93 GLint zoffset, |
| 94 bool flipY, |
| 95 bool premultiplyAlpha); |
| 96 |
83 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } | 97 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } |
84 | 98 |
85 bool hasAvailableVideoFrame() const; | 99 bool hasAvailableVideoFrame() const; |
86 | 100 |
87 KURL posterImageURL() const override; | 101 KURL posterImageURL() const override; |
88 | 102 |
89 // CanvasImageSource implementation | 103 // CanvasImageSource implementation |
90 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, | 104 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, |
91 AccelerationHint, | 105 AccelerationHint, |
92 SnapshotReason, | 106 SnapshotReason, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void setDisplayMode(DisplayMode) override; | 145 void setDisplayMode(DisplayMode) override; |
132 | 146 |
133 Member<HTMLImageLoader> m_imageLoader; | 147 Member<HTMLImageLoader> m_imageLoader; |
134 | 148 |
135 AtomicString m_defaultPosterURL; | 149 AtomicString m_defaultPosterURL; |
136 }; | 150 }; |
137 | 151 |
138 } // namespace blink | 152 } // namespace blink |
139 | 153 |
140 #endif // HTMLVideoElement_h | 154 #endif // HTMLVideoElement_h |
OLD | NEW |