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

Side by Side Diff: content/common/gpu/media/v4l2_image_processor.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert newly added scoped_ptr's Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 <errno.h> 5 #include <errno.h>
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <linux/videodev2.h> 7 #include <linux/videodev2.h>
8 #include <poll.h> 8 #include <poll.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/eventfd.h> 10 #include <sys/eventfd.h>
11 #include <sys/ioctl.h> 11 #include <sys/ioctl.h>
12 #include <sys/mman.h> 12 #include <sys/mman.h>
13 13
14 #include <memory>
15
14 #include "base/bind.h" 16 #include "base/bind.h"
15 #include "base/bind_helpers.h" 17 #include "base/bind_helpers.h"
16 #include "base/callback.h" 18 #include "base/callback.h"
17 #include "base/numerics/safe_conversions.h" 19 #include "base/numerics/safe_conversions.h"
18 #include "content/common/gpu/media/v4l2_image_processor.h" 20 #include "content/common/gpu/media/v4l2_image_processor.h"
19 #include "media/base/bind_to_current_loop.h" 21 #include "media/base/bind_to_current_loop.h"
20 22
21 #define NOTIFY_ERROR() \ 23 #define NOTIFY_ERROR() \
22 do { \ 24 do { \
23 LOG(ERROR) << "calling NotifyError()"; \ 25 LOG(ERROR) << "calling NotifyError()"; \
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 input_buffer_queued_count_ = 0; 683 input_buffer_queued_count_ = 0;
682 684
683 output_buffer_map_.clear(); 685 output_buffer_map_.clear();
684 output_buffer_map_.resize(num_buffers_); 686 output_buffer_map_.resize(num_buffers_);
685 output_buffer_queued_count_ = 0; 687 output_buffer_queued_count_ = 0;
686 688
687 return true; 689 return true;
688 } 690 }
689 691
690 } // namespace content 692 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698