OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 return client_; | 934 return client_; |
935 } | 935 } |
936 | 936 |
937 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { | 937 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { |
938 DCHECK_EQ(main_loop_, MessageLoop::current()); | 938 DCHECK_EQ(main_loop_, MessageLoop::current()); |
939 incremented_externally_allocated_memory_ = true; | 939 incremented_externally_allocated_memory_ = true; |
940 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); | 940 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); |
941 } | 941 } |
942 | 942 |
943 } // namespace webkit_media | 943 } // namespace webkit_media |
| 944 |
OLD | NEW |