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

Side by Side Diff: media/gpu/android_video_decode_accelerator.cc

Issue 1942123002: 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "media/gpu/android_video_decode_accelerator.h" 5 #include "media/gpu/android_video_decode_accelerator.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 const media::BitstreamBuffer& bitstream_buffer) { 923 const media::BitstreamBuffer& bitstream_buffer) {
924 pending_bitstream_buffers_.push(bitstream_buffer); 924 pending_bitstream_buffers_.push(bitstream_buffer);
925 TRACE_COUNTER1("media", "AVDA::PendingBitstreamBufferCount", 925 TRACE_COUNTER1("media", "AVDA::PendingBitstreamBufferCount",
926 pending_bitstream_buffers_.size()); 926 pending_bitstream_buffers_.size());
927 927
928 DoIOTask(true); 928 DoIOTask(true);
929 } 929 }
930 930
931 void AndroidVideoDecodeAccelerator::RequestPictureBuffers() { 931 void AndroidVideoDecodeAccelerator::RequestPictureBuffers() {
932 if (client_) { 932 if (client_) {
933 client_->ProvidePictureBuffers(kNumPictureBuffers, 1, 933 client_->ProvidePictureBuffers(kNumPictureBuffers, PIXEL_FORMAT_UNKNOWN, 1,
934 strategy_->GetPictureBufferSize(), 934 strategy_->GetPictureBufferSize(),
935 strategy_->GetTextureTarget()); 935 strategy_->GetTextureTarget());
936 } 936 }
937 } 937 }
938 938
939 void AndroidVideoDecodeAccelerator::AssignPictureBuffers( 939 void AndroidVideoDecodeAccelerator::AssignPictureBuffers(
940 const std::vector<media::PictureBuffer>& buffers) { 940 const std::vector<media::PictureBuffer>& buffers) {
941 DCHECK(thread_checker_.CalledOnValidThread()); 941 DCHECK(thread_checker_.CalledOnValidThread());
942 DCHECK(output_picture_buffers_.empty()); 942 DCHECK(output_picture_buffers_.empty());
943 DCHECK(free_picture_ids_.empty()); 943 DCHECK(free_picture_ids_.empty());
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 if (media::MediaCodecUtil::IsSurfaceViewOutputSupported()) { 1594 if (media::MediaCodecUtil::IsSurfaceViewOutputSupported()) {
1595 capabilities.flags |= media::VideoDecodeAccelerator::Capabilities:: 1595 capabilities.flags |= media::VideoDecodeAccelerator::Capabilities::
1596 SUPPORTS_EXTERNAL_OUTPUT_SURFACE; 1596 SUPPORTS_EXTERNAL_OUTPUT_SURFACE;
1597 } 1597 }
1598 } 1598 }
1599 1599
1600 return capabilities; 1600 return capabilities;
1601 } 1601 }
1602 1602
1603 } // namespace media 1603 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698