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

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

Issue 2476693002: WebGL & 16-bit video stream: upload to FLOAT texture. (Closed)
Patch Set: Nits. 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; 72 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const;
73 73
74 // Used by WebGL to do GPU-GPU textures copy if possible. 74 // Used by WebGL to do GPU-GPU textures copy if possible.
75 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 75 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
76 GLuint texture, 76 GLuint texture,
77 GLenum internalFormat, 77 GLenum internalFormat,
78 GLenum type, 78 GLenum type,
79 bool premultiplyAlpha, 79 bool premultiplyAlpha,
80 bool flipY); 80 bool flipY);
81 81
82 // Used by WebGL to do CPU-GPU texture upload if possible.
83 bool texImageImpl(WebMediaPlayer::TexImageFunctionID,
84 GLenum target,
85 gpu::gles2::GLES2Interface*,
86 GLint level,
87 GLint internalformat,
88 GLenum format,
89 GLenum type,
90 GLint xoffset,
91 GLint yoffset,
92 GLint zoffset,
93 bool flipY,
94 bool premultiplyAlpha);
95
82 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } 96 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; }
83 97
84 bool hasAvailableVideoFrame() const; 98 bool hasAvailableVideoFrame() const;
85 99
86 KURL posterImageURL() const override; 100 KURL posterImageURL() const override;
87 101
88 // CanvasImageSource implementation 102 // CanvasImageSource implementation
89 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, 103 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*,
90 AccelerationHint, 104 AccelerationHint,
91 SnapshotReason, 105 SnapshotReason,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void setDisplayMode(DisplayMode) override; 144 void setDisplayMode(DisplayMode) override;
131 145
132 Member<HTMLImageLoader> m_imageLoader; 146 Member<HTMLImageLoader> m_imageLoader;
133 147
134 AtomicString m_defaultPosterURL; 148 AtomicString m_defaultPosterURL;
135 }; 149 };
136 150
137 } // namespace blink 151 } // namespace blink
138 152
139 #endif // HTMLVideoElement_h 153 #endif // HTMLVideoElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698