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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2791813003: Fix broken draw/upload paths from videos to 2D canvas and WebGL. (Closed)
Patch Set: Disable GPU-GPU copies to floating-point textures on Android. Created 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 virtual unsigned DecodedFrameCount() const = 0; 170 virtual unsigned DecodedFrameCount() const = 0;
171 virtual unsigned DroppedFrameCount() const = 0; 171 virtual unsigned DroppedFrameCount() const = 0;
172 virtual unsigned CorruptedFrameCount() const { return 0; } 172 virtual unsigned CorruptedFrameCount() const { return 0; }
173 virtual size_t AudioDecodedByteCount() const = 0; 173 virtual size_t AudioDecodedByteCount() const = 0;
174 virtual size_t VideoDecodedByteCount() const = 0; 174 virtual size_t VideoDecodedByteCount() const = 0;
175 175
176 virtual void Paint(WebCanvas*, const WebRect&, cc::PaintFlags&) = 0; 176 virtual void Paint(WebCanvas*, const WebRect&, cc::PaintFlags&) = 0;
177 177
178 // TODO(kbr): remove non-|target| version. crbug.com/349871 178 // TODO(kbr): remove non-|target| version. crbug.com/349871
179 // 179 //
180 // Do a GPU-GPU texture copy of the natural size of the current 180 // Do a GPU-GPU texture copy of the current video frame to |texture|,
181 // video frame to |texture|. Caller is responsible for allocating 181 // reallocating |texture| at the appropriate size with given internal
182 // |texture| with the appropriate size. If the copy is impossible or 182 // format, format, and type if necessary. If the copy is impossible
183 // fails, it returns false. 183 // or fails, it returns false.
184 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 184 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
185 unsigned texture, 185 unsigned texture,
186 unsigned internal_format,
187 unsigned format,
188 unsigned type,
186 bool premultiply_alpha, 189 bool premultiply_alpha,
187 bool flip_y) { 190 bool flip_y) {
188 return false; 191 return false;
189 } 192 }
190 193
191 // TODO(kbr): when updating calling code to use this, remove the
192 // |internalFormat| and |type| parameters. crbug.com/349871
193 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns 194 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns
194 // false. 195 // false.
195 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 196 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
196 unsigned target, 197 unsigned target,
197 unsigned texture, 198 unsigned texture,
198 unsigned internal_format, 199 unsigned internal_format,
199 unsigned type, 200 unsigned type,
200 int level, 201 int level,
201 bool premultiply_alpha, 202 bool premultiply_alpha,
202 bool flip_y) { 203 bool flip_y) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 virtual bool GetLastUploadedFrameInfo(unsigned* width, 286 virtual bool GetLastUploadedFrameInfo(unsigned* width,
286 unsigned* height, 287 unsigned* height,
287 double* timestamp) { 288 double* timestamp) {
288 return false; 289 return false;
289 } 290 }
290 }; 291 };
291 292
292 } // namespace blink 293 } // namespace blink
293 294
294 #endif 295 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698