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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 11477004: Don't force clearing of textures that the HW decoder will overwrite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/gpu_video_decode_accelerator.cc
===================================================================
--- content/common/gpu/media/gpu_video_decode_accelerator.cc (revision 172239)
+++ content/common/gpu/media/gpu_video_decode_accelerator.cc (working copy)
@@ -225,11 +225,7 @@
NotifyError(media::VideoDecodeAccelerator::INVALID_ARGUMENT);
return;
}
- if (!texture_manager->ClearRenderableLevels(command_decoder, info)) {
- DLOG(FATAL) << "Failed to Clear texture id " << texture_ids[i];
- NotifyError(media::VideoDecodeAccelerator::PLATFORM_FAILURE);
- return;
- }
+ texture_manager->SetLevelCleared(info, GL_TEXTURE_2D, 0);
Ami GONE FROM CHROMIUM 2012/12/11 17:20:01 The texture target may not be GL_TEXTURE_2D (see P
uint32 service_texture_id;
if (!command_decoder->GetServiceTextureId(
texture_ids[i], &service_texture_id)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698