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

Unified Diff: media/midi/midi_manager_win.cc

Issue 1085843003: Revert of Web MIDI: split build rules for media/midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/midi/midi_manager_usb.cc ('k') | media/midi/midi_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_win.cc
diff --git a/media/midi/midi_manager_win.cc b/media/midi/midi_manager_win.cc
index 3de571ff99d798739380a8b77af56b90d9b986dd..a911ff6d5f371dcc93c4a4bda5ad357bdc566af5 100644
--- a/media/midi/midi_manager_win.cc
+++ b/media/midi/midi_manager_win.cc
@@ -101,7 +101,7 @@
ScopedMIDIHDR header(new MIDIHDR);
ZeroMemory(header.get(), sizeof(*header));
header->lpData = new char[size];
- header->dwBufferLength = static_cast<DWORD>(size);
+ header->dwBufferLength = size;
return header.Pass();
}
@@ -619,7 +619,7 @@
base::AutoLock auto_lock(input_ports_lock_);
const auto it = unused_input_ports_.find(state_device_info);
if (it == unused_input_ports_.end()) {
- port_number = static_cast<uint32>(input_ports_.size());
+ port_number = input_ports_.size();
add_new_port = true;
input_ports_.push_back(nullptr);
input_ports_ages_.push_back(0);
@@ -800,7 +800,7 @@
base::AutoLock auto_lock(output_ports_lock_);
const auto it = unused_output_ports_.find(state_device_info);
if (it == unused_output_ports_.end()) {
- port_number = static_cast<uint32>(output_ports_.size());
+ port_number = output_ports_.size();
add_new_port = true;
output_ports_.push_back(nullptr);
output_ports_ages_.push_back(0);
« no previous file with comments | « media/midi/midi_manager_usb.cc ('k') | media/midi/midi_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698