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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
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 13 matching lines...) Expand all
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/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 "skia/ext/cdl_common.h"
34 #include "third_party/khronos/GLES2/gl2.h" 35 #include "third_party/khronos/GLES2/gl2.h"
35 36
36 class SkPaint;
37
38 namespace gpu { 37 namespace gpu {
39 namespace gles2 { 38 namespace gles2 {
40 class GLES2Interface; 39 class GLES2Interface;
41 } 40 }
42 } 41 }
43 42
44 namespace blink { 43 namespace blink {
45 class ExceptionState; 44 class ExceptionState;
46 class ImageBitmapOptions; 45 class ImageBitmapOptions;
47 46
(...skipping 14 matching lines...) Expand all
62 void webkitExitFullscreen(); 61 void webkitExitFullscreen();
63 bool webkitSupportsFullscreen(); 62 bool webkitSupportsFullscreen();
64 bool webkitDisplayingFullscreen(); 63 bool webkitDisplayingFullscreen();
65 bool usesOverlayFullscreenVideo() const override; 64 bool usesOverlayFullscreenVideo() const override;
66 65
67 // Statistics 66 // Statistics
68 unsigned webkitDecodedFrameCount() const; 67 unsigned webkitDecodedFrameCount() const;
69 unsigned webkitDroppedFrameCount() const; 68 unsigned webkitDroppedFrameCount() const;
70 69
71 // Used by canvas to gain raw pixel access 70 // Used by canvas to gain raw pixel access
72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; 71 void paintCurrentFrame(CdlCanvas*, const IntRect&, const CdlPaint*) const;
73 72
74 // Used by WebGL to do GPU-GPU textures copy if possible. 73 // Used by WebGL to do GPU-GPU textures copy if possible.
75 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 74 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
76 GLuint texture, 75 GLuint texture,
77 GLenum internalFormat, 76 GLenum internalFormat,
78 GLenum type, 77 GLenum type,
79 bool premultiplyAlpha, 78 bool premultiplyAlpha,
80 bool flipY); 79 bool flipY);
81 80
82 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } 81 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void setDisplayMode(DisplayMode) override; 129 void setDisplayMode(DisplayMode) override;
131 130
132 Member<HTMLImageLoader> m_imageLoader; 131 Member<HTMLImageLoader> m_imageLoader;
133 132
134 AtomicString m_defaultPosterURL; 133 AtomicString m_defaultPosterURL;
135 }; 134 };
136 135
137 } // namespace blink 136 } // namespace blink
138 137
139 #endif // HTMLVideoElement_h 138 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698