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 15 matching lines...) Expand all Loading... |
26 #ifndef HTMLVideoElement_h | 26 #ifndef HTMLVideoElement_h |
27 #define HTMLVideoElement_h | 27 #define HTMLVideoElement_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/html/HTMLImageLoader.h" | 30 #include "core/html/HTMLImageLoader.h" |
31 #include "core/html/HTMLMediaElement.h" | 31 #include "core/html/HTMLMediaElement.h" |
32 #include "core/html/canvas/CanvasImageSource.h" | 32 #include "core/html/canvas/CanvasImageSource.h" |
33 #include "core/imagebitmap/ImageBitmapSource.h" | 33 #include "core/imagebitmap/ImageBitmapSource.h" |
34 #include "third_party/khronos/GLES2/gl2.h" | 34 #include "third_party/khronos/GLES2/gl2.h" |
35 | 35 |
36 class SkPaint; | |
37 | |
38 namespace gpu { | 36 namespace gpu { |
39 namespace gles2 { | 37 namespace gles2 { |
40 class GLES2Interface; | 38 class GLES2Interface; |
41 } | 39 } |
42 } | 40 } |
43 | 41 |
44 namespace blink { | 42 namespace blink { |
45 class ExceptionState; | 43 class ExceptionState; |
46 class ImageBitmapOptions; | 44 class ImageBitmapOptions; |
47 | 45 |
(...skipping 14 matching lines...) Expand all Loading... |
62 void webkitExitFullscreen(); | 60 void webkitExitFullscreen(); |
63 bool webkitSupportsFullscreen(); | 61 bool webkitSupportsFullscreen(); |
64 bool webkitDisplayingFullscreen(); | 62 bool webkitDisplayingFullscreen(); |
65 bool usesOverlayFullscreenVideo() const override; | 63 bool usesOverlayFullscreenVideo() const override; |
66 | 64 |
67 // Statistics | 65 // Statistics |
68 unsigned webkitDecodedFrameCount() const; | 66 unsigned webkitDecodedFrameCount() const; |
69 unsigned webkitDroppedFrameCount() const; | 67 unsigned webkitDroppedFrameCount() const; |
70 | 68 |
71 // Used by canvas to gain raw pixel access | 69 // Used by canvas to gain raw pixel access |
72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 70 void paintCurrentFrame(PaintCanvas*, const IntRect&, const PaintFlags*) const; |
73 | 71 |
74 // Used by WebGL to do GPU-GPU textures copy if possible. | 72 // Used by WebGL to do GPU-GPU textures copy if possible. |
75 // The caller is responsible for allocating the destination texture. | 73 // The caller is responsible for allocating the destination texture. |
76 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | 74 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
77 GLuint texture, | 75 GLuint texture, |
78 bool premultiplyAlpha, | 76 bool premultiplyAlpha, |
79 bool flipY); | 77 bool flipY); |
80 | 78 |
81 // Used by WebGL to do CPU-GPU texture upload if possible. | 79 // Used by WebGL to do CPU-GPU texture upload if possible. |
82 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, | 80 bool texImageImpl(WebMediaPlayer::TexImageFunctionID, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 void setDisplayMode(DisplayMode) override; | 139 void setDisplayMode(DisplayMode) override; |
142 | 140 |
143 Member<HTMLImageLoader> m_imageLoader; | 141 Member<HTMLImageLoader> m_imageLoader; |
144 | 142 |
145 AtomicString m_defaultPosterURL; | 143 AtomicString m_defaultPosterURL; |
146 }; | 144 }; |
147 | 145 |
148 } // namespace blink | 146 } // namespace blink |
149 | 147 |
150 #endif // HTMLVideoElement_h | 148 #endif // HTMLVideoElement_h |
OLD | NEW |