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

Side by Side Diff: content/browser/media/capture/web_contents_video_capture_device_unittest.cc

Issue 1815563004: Remove iOS ifdefs in src/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/media/capture/web_contents_video_capture_device.h" 5 #include "content/browser/media/capture/web_contents_video_capture_device.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 buffer_handle_(std::move(buffer_handle)) { 438 buffer_handle_(std::move(buffer_handle)) {
439 DCHECK(pool_.get()); 439 DCHECK(pool_.get());
440 } 440 }
441 int id() const override { return id_; } 441 int id() const override { return id_; }
442 gfx::Size dimensions() const override { return gfx::Size(); } 442 gfx::Size dimensions() const override { return gfx::Size(); }
443 size_t mapped_size() const override { 443 size_t mapped_size() const override {
444 return buffer_handle_->mapped_size(); 444 return buffer_handle_->mapped_size();
445 } 445 }
446 void* data(int plane) override { return buffer_handle_->data(plane); } 446 void* data(int plane) override { return buffer_handle_->data(plane); }
447 ClientBuffer AsClientBuffer(int plane) override { return nullptr; } 447 ClientBuffer AsClientBuffer(int plane) override { return nullptr; }
448 #if defined(OS_POSIX) && !(defined(OS_MACOSX) && !defined(OS_IOS)) 448 #if defined(OS_POSIX) && !defined(OS_MACOSX)
449 base::FileDescriptor AsPlatformFile() override { 449 base::FileDescriptor AsPlatformFile() override {
450 return base::FileDescriptor(); 450 return base::FileDescriptor();
451 } 451 }
452 #endif 452 #endif
453 453
454 private: 454 private:
455 ~AutoReleaseBuffer() override { pool_->RelinquishProducerReservation(id_); } 455 ~AutoReleaseBuffer() override { pool_->RelinquishProducerReservation(id_); }
456 456
457 const int id_; 457 const int id_;
458 const scoped_refptr<VideoCaptureBufferPool> pool_; 458 const scoped_refptr<VideoCaptureBufferPool> pool_;
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 policies[i], gfx::Size(1000, 1000), gfx::Size(1000, 1000)); 1149 policies[i], gfx::Size(1000, 1000), gfx::Size(1000, 1000));
1150 RunTestForPreferredSize( 1150 RunTestForPreferredSize(
1151 policies[i], gfx::Size(1600, 1000), gfx::Size(1600, 1000)); 1151 policies[i], gfx::Size(1600, 1000), gfx::Size(1600, 1000));
1152 RunTestForPreferredSize( 1152 RunTestForPreferredSize(
1153 policies[i], gfx::Size(837, 999), gfx::Size(837, 999)); 1153 policies[i], gfx::Size(837, 999), gfx::Size(837, 999));
1154 } 1154 }
1155 } 1155 }
1156 1156
1157 } // namespace 1157 } // namespace
1158 } // namespace content 1158 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698