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

Side by Side Diff: content/renderer/pepper/pepper_video_decoder_host.cc

Issue 2019333004: Revert of Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper/pepper_video_decoder_host.h" 5 #include "content/renderer/pepper/pepper_video_decoder_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 return PP_ERROR_FAILED; 344 return PP_ERROR_FAILED;
345 345
346 reset_reply_context_ = context->MakeReplyMessageContext(); 346 reset_reply_context_ = context->MakeReplyMessageContext();
347 decoder_->Reset(); 347 decoder_->Reset();
348 348
349 return PP_OK_COMPLETIONPENDING; 349 return PP_OK_COMPLETIONPENDING;
350 } 350 }
351 351
352 void PepperVideoDecoderHost::ProvidePictureBuffers( 352 void PepperVideoDecoderHost::ProvidePictureBuffers(
353 uint32_t requested_num_of_buffers, 353 uint32_t requested_num_of_buffers,
354 media::VideoPixelFormat format,
355 uint32_t textures_per_buffer, 354 uint32_t textures_per_buffer,
356 const gfx::Size& dimensions, 355 const gfx::Size& dimensions,
357 uint32_t texture_target) { 356 uint32_t texture_target) {
358 DCHECK_EQ(1u, textures_per_buffer); 357 DCHECK_EQ(1u, textures_per_buffer);
359 RequestTextures(std::max(min_picture_count_, requested_num_of_buffers), 358 RequestTextures(std::max(min_picture_count_, requested_num_of_buffers),
360 dimensions, 359 dimensions,
361 texture_target, 360 texture_target,
362 std::vector<gpu::Mailbox>()); 361 std::vector<gpu::Mailbox>());
363 } 362 }
364 363
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 531
533 PepperVideoDecoderHost::PendingDecodeList::iterator 532 PepperVideoDecoderHost::PendingDecodeList::iterator
534 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) { 533 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) {
535 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(), 534 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(),
536 [decode_id](const PendingDecode& item) { 535 [decode_id](const PendingDecode& item) {
537 return item.decode_id == decode_id; 536 return item.decode_id == decode_id;
538 }); 537 });
539 } 538 }
540 539
541 } // namespace content 540 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_decoder_host.h ('k') | content/renderer/pepper/ppb_video_decoder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698