| OLD | NEW |
| 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 "webkit/media/webmediaplayer_impl.h" | 5 #include "webkit/media/webmediaplayer_impl.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/synchronization/waitable_event.h" |
| 15 #include "media/base/filter_collection.h" | 16 #include "media/base/filter_collection.h" |
| 16 #include "media/base/limits.h" | 17 #include "media/base/limits.h" |
| 17 #include "media/base/media_log.h" | 18 #include "media/base/media_log.h" |
| 18 #include "media/base/media_switches.h" | 19 #include "media/base/media_switches.h" |
| 19 #include "media/base/pipeline.h" | 20 #include "media/base/pipeline.h" |
| 20 #include "media/base/video_frame.h" | 21 #include "media/base/video_frame.h" |
| 21 #include "media/filters/null_audio_renderer.h" | 22 #include "media/filters/null_audio_renderer.h" |
| 22 #include "media/filters/video_renderer_base.h" | 23 #include "media/filters/video_renderer_base.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVideoFrame.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVideoFrame.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 return audio_source_provider_; | 918 return audio_source_provider_; |
| 918 } | 919 } |
| 919 | 920 |
| 920 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { | 921 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { |
| 921 DCHECK_EQ(main_loop_, MessageLoop::current()); | 922 DCHECK_EQ(main_loop_, MessageLoop::current()); |
| 922 incremented_externally_allocated_memory_ = true; | 923 incremented_externally_allocated_memory_ = true; |
| 923 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); | 924 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); |
| 924 } | 925 } |
| 925 | 926 |
| 926 } // namespace webkit_media | 927 } // namespace webkit_media |
| OLD | NEW |