| 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 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 // Used for DCHECKs to ensure methods calls executed in the correct thread. | 144 // Used for DCHECKs to ensure methods calls executed in the correct thread. |
| 145 base::ThreadChecker thread_checker_; | 145 base::ThreadChecker thread_checker_; |
| 146 | 146 |
| 147 WebKit::WebMediaPlayerClient* client_; | 147 WebKit::WebMediaPlayerClient* client_; |
| 148 | 148 |
| 149 base::WeakPtr<WebMediaPlayerDelegate> delegate_; | 149 base::WeakPtr<WebMediaPlayerDelegate> delegate_; |
| 150 | 150 |
| 151 MediaStreamClient* media_stream_client_; | 151 MediaStreamClient* media_stream_client_; |
| 152 scoped_refptr<VideoFrameProvider> video_frame_provider_; | 152 scoped_refptr<VideoFrameProvider> video_frame_provider_; |
| 153 bool video_frame_provider_started_; | |
| 154 bool paused_; | 153 bool paused_; |
| 155 scoped_refptr<media::VideoFrame> current_frame_; | 154 scoped_refptr<media::VideoFrame> current_frame_; |
| 156 bool pending_repaint_; | 155 bool pending_repaint_; |
| 157 bool got_first_frame_; | 156 bool got_first_frame_; |
| 158 base::TimeDelta start_time_; | 157 base::TimeDelta start_time_; |
| 159 unsigned total_frame_count_; | 158 unsigned total_frame_count_; |
| 160 unsigned dropped_frame_count_; | 159 unsigned dropped_frame_count_; |
| 161 SkCanvasVideoRenderer video_renderer_; | 160 SkCanvasVideoRenderer video_renderer_; |
| 162 | 161 |
| 163 scoped_refptr<media::MediaLog> media_log_; | 162 scoped_refptr<media::MediaLog> media_log_; |
| 164 | 163 |
| 165 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 164 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 166 }; | 165 }; |
| 167 | 166 |
| 168 } // namespace webkit_media | 167 } // namespace webkit_media |
| 169 | 168 |
| 170 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ | 169 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |