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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 bool isAccelerated() const override { return false; } | 114 bool isAccelerated() const override { return false; } |
115 | 115 |
116 // ImageBitmapSource implementation | 116 // ImageBitmapSource implementation |
117 IntSize bitmapSourceSize() const override; | 117 IntSize bitmapSourceSize() const override; |
118 ScriptPromise createImageBitmap(ScriptState*, | 118 ScriptPromise createImageBitmap(ScriptState*, |
119 EventTarget&, | 119 EventTarget&, |
120 Optional<IntRect> cropRect, | 120 Optional<IntRect> cropRect, |
121 const ImageBitmapOptions&, | 121 const ImageBitmapOptions&, |
122 ExceptionState&) override; | 122 ExceptionState&) override; |
123 | 123 |
| 124 unsigned webglLastUploadedWidth() const { return m_webglLastUploadedWidth; } |
| 125 unsigned webglLastUploadedHeight() const { return m_webglLastUploadedHeight; } |
| 126 double webglLastUploadedTimestamp() const { |
| 127 return m_webglLastUploadedTimestamp; |
| 128 } |
| 129 |
| 130 void webglUpdateLastUploaded(); |
| 131 |
124 private: | 132 private: |
125 friend class MediaCustomControlsFullscreenDetectorTest; | 133 friend class MediaCustomControlsFullscreenDetectorTest; |
126 friend class HTMLMediaElementEventListenersTest; | 134 friend class HTMLMediaElementEventListenersTest; |
127 | 135 |
128 HTMLVideoElement(Document&); | 136 HTMLVideoElement(Document&); |
129 | 137 |
130 // SuspendableObject functions. | 138 // SuspendableObject functions. |
131 void contextDestroyed(ExecutionContext*) final; | 139 void contextDestroyed(ExecutionContext*) final; |
132 | 140 |
133 bool layoutObjectIsNeeded(const ComputedStyle&) override; | 141 bool layoutObjectIsNeeded(const ComputedStyle&) override; |
134 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 142 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
135 void attachLayoutTree(const AttachContext& = AttachContext()) override; | 143 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
136 void parseAttribute(const AttributeModificationParams&) override; | 144 void parseAttribute(const AttributeModificationParams&) override; |
137 bool isPresentationAttribute(const QualifiedName&) const override; | 145 bool isPresentationAttribute(const QualifiedName&) const override; |
138 void collectStyleForPresentationAttribute(const QualifiedName&, | 146 void collectStyleForPresentationAttribute(const QualifiedName&, |
139 const AtomicString&, | 147 const AtomicString&, |
140 MutableStylePropertySet*) override; | 148 MutableStylePropertySet*) override; |
141 bool isURLAttribute(const Attribute&) const override; | 149 bool isURLAttribute(const Attribute&) const override; |
142 const AtomicString imageSourceURL() const override; | 150 const AtomicString imageSourceURL() const override; |
143 | 151 |
144 void updateDisplayState() override; | 152 void updateDisplayState() override; |
145 void didMoveToNewDocument(Document& oldDocument) override; | 153 void didMoveToNewDocument(Document& oldDocument) override; |
146 void setDisplayMode(DisplayMode) override; | 154 void setDisplayMode(DisplayMode) override; |
147 | 155 |
148 Member<HTMLImageLoader> m_imageLoader; | 156 Member<HTMLImageLoader> m_imageLoader; |
149 Member<MediaCustomControlsFullscreenDetector> | 157 Member<MediaCustomControlsFullscreenDetector> |
150 m_customControlsFullscreenDetector; | 158 m_customControlsFullscreenDetector; |
151 | 159 |
152 AtomicString m_defaultPosterURL; | 160 AtomicString m_defaultPosterURL; |
| 161 |
| 162 unsigned m_webglLastUploadedWidth = 0; |
| 163 unsigned m_webglLastUploadedHeight = 0; |
| 164 double m_webglLastUploadedTimestamp = 0.0; |
153 }; | 165 }; |
154 | 166 |
155 } // namespace blink | 167 } // namespace blink |
156 | 168 |
157 #endif // HTMLVideoElement_h | 169 #endif // HTMLVideoElement_h |
OLD | NEW |