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

Side by Side Diff: media/capture/video/mac/video_capture_device_decklink_mac.mm

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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 "media/capture/video/mac/video_capture_device_decklink_mac.h" 5 #include "media/capture/video/mac/video_capture_device_decklink_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
9 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
10 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
11 #include "third_party/decklink/mac/include/DeckLinkAPI.h" 12 #include "third_party/decklink/mac/include/DeckLinkAPI.h"
12 13
13 namespace { 14 namespace {
14 15
15 // DeckLink SDK uses ScopedComPtr-style APIs. Chrome ScopedComPtr is only 16 // DeckLink SDK uses ScopedComPtr-style APIs. Chrome ScopedComPtr is only
16 // available for Windows builds. This is a verbatim knock-off of the needed 17 // available for Windows builds. This is a verbatim knock-off of the needed
17 // parts of base::win::ScopedComPtr<> for ref counting. 18 // parts of base::win::ScopedComPtr<> for ref counting.
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 if (decklink_capture_delegate_.get()) 481 if (decklink_capture_delegate_.get())
481 decklink_capture_delegate_->AllocateAndStart(params); 482 decklink_capture_delegate_->AllocateAndStart(params);
482 } 483 }
483 484
484 void VideoCaptureDeviceDeckLinkMac::StopAndDeAllocate() { 485 void VideoCaptureDeviceDeckLinkMac::StopAndDeAllocate() {
485 if (decklink_capture_delegate_.get()) 486 if (decklink_capture_delegate_.get())
486 decklink_capture_delegate_->StopAndDeAllocate(); 487 decklink_capture_delegate_->StopAndDeAllocate();
487 } 488 }
488 489
489 } // namespace media 490 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698