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

Side by Side Diff: chromecast/media/cma/backend/alsa/volume_control.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "chromecast/public/volume_control.h" 5 #include "chromecast/public/volume_control.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/bind_helpers.h" 16 #include "base/bind_helpers.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/files/file_util.h" 18 #include "base/files/file_util.h"
19 #include "base/lazy_instance.h" 19 #include "base/lazy_instance.h"
20 #include "base/location.h" 20 #include "base/location.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/macros.h" 22 #include "base/macros.h"
23 #include "base/memory/ptr_util.h" 23 #include "base/memory/ptr_util.h"
24 #include "base/message_loop/message_loop.h"
24 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
25 #include "base/synchronization/waitable_event.h" 26 #include "base/synchronization/waitable_event.h"
26 #include "base/threading/thread.h" 27 #include "base/threading/thread.h"
27 #include "base/values.h" 28 #include "base/values.h"
28 #include "chromecast/base/init_command_line_shlib.h" 29 #include "chromecast/base/init_command_line_shlib.h"
29 #include "chromecast/base/serializers.h" 30 #include "chromecast/base/serializers.h"
30 #include "chromecast/media/cma/backend/alsa/alsa_features.h" 31 #include "chromecast/media/cma/backend/alsa/alsa_features.h"
31 #include "chromecast/media/cma/backend/alsa/alsa_volume_control.h" 32 #include "chromecast/media/cma/backend/alsa/alsa_volume_control.h"
32 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa.h" 33 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa.h"
33 34
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 363
363 return kVolumeMap[i - 1].level + 364 return kVolumeMap[i - 1].level +
364 (db - kVolumeMap[i - 1].db) * y_diff / x_diff; 365 (db - kVolumeMap[i - 1].db) * y_diff / x_diff;
365 } 366 }
366 } 367 }
367 return kVolumeMap[arraysize(kVolumeMap) - 1].level; 368 return kVolumeMap[arraysize(kVolumeMap) - 1].level;
368 } 369 }
369 370
370 } // namespace media 371 } // namespace media
371 } // namespace chromecast 372 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698