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

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

Issue 2767063002: 16-bit video upload to float: intermediate R16_EXT and copy to float. (Closed)
Patch Set: Nit. Created 3 years, 7 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
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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 return false; 327 return false;
328 328
329 return GetWebMediaPlayer()->CopyVideoTextureToPlatformTexture( 329 return GetWebMediaPlayer()->CopyVideoTextureToPlatformTexture(
330 gl, texture, internal_format, format, type, premultiply_alpha, flip_y); 330 gl, texture, internal_format, format, type, premultiply_alpha, flip_y);
331 } 331 }
332 332
333 bool HTMLVideoElement::TexImageImpl( 333 bool HTMLVideoElement::TexImageImpl(
334 WebMediaPlayer::TexImageFunctionID function_id, 334 WebMediaPlayer::TexImageFunctionID function_id,
335 GLenum target, 335 GLenum target,
336 gpu::gles2::GLES2Interface* gl, 336 gpu::gles2::GLES2Interface* gl,
337 GLuint texture,
337 GLint level, 338 GLint level,
338 GLint internalformat, 339 GLint internalformat,
339 GLenum format, 340 GLenum format,
340 GLenum type, 341 GLenum type,
341 GLint xoffset, 342 GLint xoffset,
342 GLint yoffset, 343 GLint yoffset,
343 GLint zoffset, 344 GLint zoffset,
344 bool flip_y, 345 bool flip_y,
345 bool premultiply_alpha) { 346 bool premultiply_alpha) {
346 if (!GetWebMediaPlayer()) 347 if (!GetWebMediaPlayer())
347 return false; 348 return false;
348 return GetWebMediaPlayer()->TexImageImpl( 349 return GetWebMediaPlayer()->TexImageImpl(
349 function_id, target, gl, level, internalformat, format, type, xoffset, 350 function_id, target, gl, texture, level, internalformat, format, type,
350 yoffset, zoffset, flip_y, premultiply_alpha); 351 xoffset, yoffset, zoffset, flip_y, premultiply_alpha);
351 } 352 }
352 353
353 bool HTMLVideoElement::HasAvailableVideoFrame() const { 354 bool HTMLVideoElement::HasAvailableVideoFrame() const {
354 if (!GetWebMediaPlayer()) 355 if (!GetWebMediaPlayer())
355 return false; 356 return false;
356 357
357 return GetWebMediaPlayer()->HasVideo() && 358 return GetWebMediaPlayer()->HasVideo() &&
358 GetWebMediaPlayer()->GetReadyState() >= 359 GetWebMediaPlayer()->GetReadyState() >=
359 WebMediaPlayer::kReadyStateHaveCurrentData; 360 WebMediaPlayer::kReadyStateHaveCurrentData;
360 } 361 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 } 516 }
516 517
517 void HTMLVideoElement::DisableMediaRemoting() { 518 void HTMLVideoElement::DisableMediaRemoting() {
518 if (GetWebMediaPlayer()) 519 if (GetWebMediaPlayer())
519 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true); 520 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true);
520 media_remoting_status_ = MediaRemotingStatus::kDisabled; 521 media_remoting_status_ = MediaRemotingStatus::kDisabled;
521 MediaRemotingStopped(); 522 MediaRemotingStopped();
522 } 523 }
523 524
524 } // namespace blink 525 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698