OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "media/blink/webmediaplayer_cast_android.h" | 5 #include "media/blink/webmediaplayer_cast_android.h" |
6 | 6 |
7 #include "gpu/GLES2/gl2extchromium.h" | 7 #include "gpu/GLES2/gl2extchromium.h" |
8 #include "gpu/blink/webgraphicscontext3d_impl.h" | |
9 #include "gpu/command_buffer/client/gles2_interface.h" | 8 #include "gpu/command_buffer/client/gles2_interface.h" |
10 #include "gpu/command_buffer/common/sync_token.h" | 9 #include "gpu/command_buffer/common/sync_token.h" |
11 #include "media/base/android/media_common_android.h" | 10 #include "media/base/android/media_common_android.h" |
12 #include "media/base/bind_to_current_loop.h" | 11 #include "media/base/bind_to_current_loop.h" |
13 #include "media/blink/webmediaplayer_impl.h" | 12 #include "media/blink/webmediaplayer_impl.h" |
14 #include "media/blink/webmediaplayer_params.h" | 13 #include "media/blink/webmediaplayer_params.h" |
15 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" | 14 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" |
16 #include "third_party/WebKit/public/platform/modules/mediasession/WebMediaSessio
n.h" | 15 #include "third_party/WebKit/public/platform/modules/mediasession/WebMediaSessio
n.h" |
17 #include "third_party/WebKit/public/web/WebDocument.h" | 16 #include "third_party/WebKit/public/web/WebDocument.h" |
18 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 374 |
376 if (!canvas_size.width()) | 375 if (!canvas_size.width()) |
377 return nullptr; | 376 return nullptr; |
378 | 377 |
379 return MakeTextFrameForCast(remote_playback_message_, canvas_size, | 378 return MakeTextFrameForCast(remote_playback_message_, canvas_size, |
380 webmediaplayer_->naturalSize(), | 379 webmediaplayer_->naturalSize(), |
381 base::Bind(&GLCBShim, context_3d_cb_)); | 380 base::Bind(&GLCBShim, context_3d_cb_)); |
382 } | 381 } |
383 | 382 |
384 } // namespace media | 383 } // namespace media |
OLD | NEW |