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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 media_flags.setAlpha(0xFF); | 303 media_flags.setAlpha(0xFF); |
304 media_flags.setFilterQuality(kLow_SkFilterQuality); | 304 media_flags.setFilterQuality(kLow_SkFilterQuality); |
305 } | 305 } |
306 | 306 |
307 GetWebMediaPlayer()->Paint(canvas, dest_rect, media_flags); | 307 GetWebMediaPlayer()->Paint(canvas, dest_rect, media_flags); |
308 } | 308 } |
309 | 309 |
310 bool HTMLVideoElement::CopyVideoTextureToPlatformTexture( | 310 bool HTMLVideoElement::CopyVideoTextureToPlatformTexture( |
311 gpu::gles2::GLES2Interface* gl, | 311 gpu::gles2::GLES2Interface* gl, |
312 GLuint texture, | 312 GLuint texture, |
313 GLenum internal_format, | |
314 GLenum format, | |
315 GLenum type, | |
316 bool premultiply_alpha, | 313 bool premultiply_alpha, |
317 bool flip_y) { | 314 bool flip_y) { |
318 if (!GetWebMediaPlayer()) | 315 if (!GetWebMediaPlayer()) |
319 return false; | 316 return false; |
320 | 317 |
321 return GetWebMediaPlayer()->CopyVideoTextureToPlatformTexture( | 318 return GetWebMediaPlayer()->CopyVideoTextureToPlatformTexture( |
322 gl, texture, internal_format, format, type, premultiply_alpha, flip_y); | 319 gl, texture, premultiply_alpha, flip_y); |
323 } | 320 } |
324 | 321 |
325 bool HTMLVideoElement::TexImageImpl( | 322 bool HTMLVideoElement::TexImageImpl( |
326 WebMediaPlayer::TexImageFunctionID function_id, | 323 WebMediaPlayer::TexImageFunctionID function_id, |
327 GLenum target, | 324 GLenum target, |
328 gpu::gles2::GLES2Interface* gl, | 325 gpu::gles2::GLES2Interface* gl, |
329 GLint level, | 326 GLint level, |
330 GLint internalformat, | 327 GLint internalformat, |
331 GLenum format, | 328 GLenum format, |
332 GLenum type, | 329 GLenum type, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 return ScriptPromise(); | 474 return ScriptPromise(); |
478 if (!ImageBitmap::IsResizeOptionValid(options, exception_state)) | 475 if (!ImageBitmap::IsResizeOptionValid(options, exception_state)) |
479 return ScriptPromise(); | 476 return ScriptPromise(); |
480 return ImageBitmapSource::FulfillImageBitmap( | 477 return ImageBitmapSource::FulfillImageBitmap( |
481 script_state, ImageBitmap::Create( | 478 script_state, ImageBitmap::Create( |
482 this, crop_rect, | 479 this, crop_rect, |
483 event_target.ToLocalDOMWindow()->document(), options)); | 480 event_target.ToLocalDOMWindow()->document(), options)); |
484 } | 481 } |
485 | 482 |
486 } // namespace blink | 483 } // namespace blink |
OLD | NEW |