| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/media/webmediaplayer_impl.h" | 5 #include "webkit/renderer/media/webmediaplayer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/debug/crash_logging.h" | 15 #include "base/debug/crash_logging.h" |
| 16 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
| 20 #include "cc/layers/video_layer.h" | 20 #include "cc/layers/video_layer.h" |
| 21 #include "gpu/GLES2/gl2extchromium.h" | 21 #include "gpu/GLES2/gl2extchromium.h" |
| 22 #include "media/audio/null_audio_sink.h" | 22 #include "media/audio/null_audio_sink.h" |
| 23 #include "media/base/bind_to_loop.h" | 23 #include "media/base/bind_to_loop.h" |
| 24 #include "media/base/filter_collection.h" | 24 #include "media/base/filter_collection.h" |
| 25 #include "media/base/limits.h" | 25 #include "media/base/limits.h" |
| 26 #include "media/base/media_log.h" | 26 #include "media/base/media_log.h" |
| (...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 | 1212 |
| 1213 if (pending_repaint_) | 1213 if (pending_repaint_) |
| 1214 return; | 1214 return; |
| 1215 | 1215 |
| 1216 pending_repaint_ = true; | 1216 pending_repaint_ = true; |
| 1217 main_loop_->PostTask(FROM_HERE, base::Bind( | 1217 main_loop_->PostTask(FROM_HERE, base::Bind( |
| 1218 &WebMediaPlayerImpl::Repaint, AsWeakPtr())); | 1218 &WebMediaPlayerImpl::Repaint, AsWeakPtr())); |
| 1219 } | 1219 } |
| 1220 | 1220 |
| 1221 } // namespace webkit_media | 1221 } // namespace webkit_media |
| OLD | NEW |