| 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 19 matching lines...) Expand all Loading... |
| 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 "platform/graphics/GraphicsTypes3D.h" | 34 #include "platform/graphics/GraphicsTypes3D.h" |
| 35 | 35 |
| 36 class SkPaint; | 36 class SkPaint; |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 class WebGraphicsContext3D; | 39 class WebGraphicsContext3D; |
| 40 class ColorSpaceProfile; |
| 40 class ExceptionState; | 41 class ExceptionState; |
| 41 class GraphicsContext; | 42 class GraphicsContext; |
| 42 class ImageBitmapOptions; | 43 class ImageBitmapOptions; |
| 43 | 44 |
| 44 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. | 45 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. |
| 45 // That header cannot be included directly due to a conflict with NPAPI headers. | 46 // That header cannot be included directly due to a conflict with NPAPI headers. |
| 46 // See crbug.com/328085. | 47 // See crbug.com/328085. |
| 47 typedef unsigned GLenum; | 48 typedef unsigned GLenum; |
| 48 typedef int GC3Dint; | 49 typedef int GC3Dint; |
| 49 | 50 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 void webkitExitFullscreen(); | 62 void webkitExitFullscreen(); |
| 62 bool webkitSupportsFullscreen(); | 63 bool webkitSupportsFullscreen(); |
| 63 bool webkitDisplayingFullscreen(); | 64 bool webkitDisplayingFullscreen(); |
| 64 bool usesOverlayFullscreenVideo() const override; | 65 bool usesOverlayFullscreenVideo() const override; |
| 65 | 66 |
| 66 // Statistics | 67 // Statistics |
| 67 unsigned webkitDecodedFrameCount() const; | 68 unsigned webkitDecodedFrameCount() const; |
| 68 unsigned webkitDroppedFrameCount() const; | 69 unsigned webkitDroppedFrameCount() const; |
| 69 | 70 |
| 70 // Used by canvas to gain raw pixel access | 71 // Used by canvas to gain raw pixel access |
| 71 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; | 72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*, ColorSpace
Profile* target) const; |
| 72 | 73 |
| 73 // Used by WebGL to do GPU-GPU textures copy if possible. | 74 // Used by WebGL to do GPU-GPU textures copy if possible. |
| 74 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); | 75 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje
ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip
Y); |
| 75 | 76 |
| 76 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } | 77 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } |
| 77 | 78 |
| 78 bool hasAvailableVideoFrame() const; | 79 bool hasAvailableVideoFrame() const; |
| 79 | 80 |
| 80 KURL posterImageURL() const override; | 81 KURL posterImageURL() const override; |
| 81 | 82 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 110 void setDisplayMode(DisplayMode) override; | 111 void setDisplayMode(DisplayMode) override; |
| 111 | 112 |
| 112 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; | 113 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 113 | 114 |
| 114 AtomicString m_defaultPosterURL; | 115 AtomicString m_defaultPosterURL; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace blink | 118 } // namespace blink |
| 118 | 119 |
| 119 #endif // HTMLVideoElement_h | 120 #endif // HTMLVideoElement_h |
| OLD | NEW |