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

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

Issue 2044033002: V4L2{,S}VDA: Typo fix (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
« no previous file with comments | « no previous file | media/gpu/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/v4l2_slice_video_decode_accelerator.h" 5 #include "media/gpu/v4l2_slice_video_decode_accelerator.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <linux/videodev2.h> 9 #include <linux/videodev2.h>
10 #include <poll.h> 10 #include <poll.h>
(...skipping 2773 matching lines...) Expand 10 before | Expand all | Expand 10 after
2784 DVLOGF(3) << "clearing count=" << picture_clearing_count_; 2784 DVLOGF(3) << "clearing count=" << picture_clearing_count_;
2785 DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread()); 2785 DCHECK(decoder_thread_task_runner_->BelongsToCurrentThread());
2786 DCHECK_GT(picture_clearing_count_, 0); 2786 DCHECK_GT(picture_clearing_count_, 0);
2787 picture_clearing_count_--; 2787 picture_clearing_count_--;
2788 SendPictureReady(); 2788 SendPictureReady();
2789 } 2789 }
2790 2790
2791 bool V4L2SliceVideoDecodeAccelerator::TryToSetupDecodeOnSeparateThread( 2791 bool V4L2SliceVideoDecodeAccelerator::TryToSetupDecodeOnSeparateThread(
2792 const base::WeakPtr<Client>& decode_client, 2792 const base::WeakPtr<Client>& decode_client,
2793 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) { 2793 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) {
2794 decode_client_ = decode_client_; 2794 decode_client_ = decode_client;
2795 decode_task_runner_ = decode_task_runner; 2795 decode_task_runner_ = decode_task_runner;
2796 return true; 2796 return true;
2797 } 2797 }
2798 2798
2799 // static 2799 // static
2800 media::VideoDecodeAccelerator::SupportedProfiles 2800 media::VideoDecodeAccelerator::SupportedProfiles
2801 V4L2SliceVideoDecodeAccelerator::GetSupportedProfiles() { 2801 V4L2SliceVideoDecodeAccelerator::GetSupportedProfiles() {
2802 scoped_refptr<V4L2Device> device = V4L2Device::Create(V4L2Device::kDecoder); 2802 scoped_refptr<V4L2Device> device = V4L2Device::Create(V4L2Device::kDecoder);
2803 if (!device) 2803 if (!device)
2804 return SupportedProfiles(); 2804 return SupportedProfiles();
2805 2805
2806 return device->GetSupportedDecodeProfiles(arraysize(supported_input_fourccs_), 2806 return device->GetSupportedDecodeProfiles(arraysize(supported_input_fourccs_),
2807 supported_input_fourccs_); 2807 supported_input_fourccs_);
2808 } 2808 }
2809 2809
2810 } // namespace media 2810 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/gpu/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698