Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: Source/core/html/HTMLVideoElement.h

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef HTMLVideoElement_h 26 #ifndef HTMLVideoElement_h
27 #define HTMLVideoElement_h 27 #define HTMLVideoElement_h
28 28
29 #include "core/html/HTMLMediaElement.h" 29 #include "core/html/HTMLMediaElement.h"
30 #include "core/html/canvas/CanvasImageSource.h" 30 #include "core/html/canvas/CanvasImageSource.h"
31 #include "platform/graphics/GraphicsTypes3D.h" 31 #include "platform/graphics/GraphicsTypes3D.h"
32 32
33 class SkPaint;
34
33 namespace blink { 35 namespace blink {
34 class WebGraphicsContext3D; 36 class WebGraphicsContext3D;
35 }
36
37 namespace blink {
38
39 class ExceptionState; 37 class ExceptionState;
40 class HTMLImageLoader; 38 class HTMLImageLoader;
41 class GraphicsContext; 39 class GraphicsContext;
42 40
43 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. 41 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org.
44 // That header cannot be included directly due to a conflict with NPAPI headers. 42 // That header cannot be included directly due to a conflict with NPAPI headers.
45 // See crbug.com/328085. 43 // See crbug.com/328085.
46 typedef unsigned GLenum; 44 typedef unsigned GLenum;
47 typedef int GC3Dint; 45 typedef int GC3Dint;
48 46
(...skipping 10 matching lines...) Expand all
59 void webkitEnterFullscreen(ExceptionState&); 57 void webkitEnterFullscreen(ExceptionState&);
60 void webkitExitFullscreen(); 58 void webkitExitFullscreen();
61 bool webkitSupportsFullscreen(); 59 bool webkitSupportsFullscreen();
62 bool webkitDisplayingFullscreen(); 60 bool webkitDisplayingFullscreen();
63 61
64 // Statistics 62 // Statistics
65 unsigned webkitDecodedFrameCount() const; 63 unsigned webkitDecodedFrameCount() const;
66 unsigned webkitDroppedFrameCount() const; 64 unsigned webkitDroppedFrameCount() const;
67 65
68 // Used by canvas to gain raw pixel access 66 // Used by canvas to gain raw pixel access
69 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; 67 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const;
70 68
71 // Used by WebGL to do GPU-GPU textures copy if possible. 69 // Used by WebGL to do GPU-GPU textures copy if possible.
72 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY); 70 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY);
73 71
74 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } 72 bool shouldDisplayPosterImage() const { return displayMode() == Poster; }
75 73
76 KURL posterImageURL() const; 74 KURL posterImageURL() const;
77 75
78 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it. 76 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it.
79 virtual KURL mediaPlayerPosterURL() override; 77 virtual KURL mediaPlayerPosterURL() override;
(...skipping 27 matching lines...) Expand all
107 virtual void setDisplayMode(DisplayMode) override; 105 virtual void setDisplayMode(DisplayMode) override;
108 106
109 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 107 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
110 108
111 AtomicString m_defaultPosterURL; 109 AtomicString m_defaultPosterURL;
112 }; 110 };
113 111
114 } // namespace blink 112 } // namespace blink
115 113
116 #endif // HTMLVideoElement_h 114 #endif // HTMLVideoElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698