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 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture | 130 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture |
131 // internally. It should be removed and replaced by the normal paint path. | 131 // internally. It should be removed and replaced by the normal paint path. |
132 // https://code.google.com/p/skia/issues/detail?id=1189 | 132 // https://code.google.com/p/skia/issues/detail?id=1189 |
133 virtual void paint(blink::WebCanvas* canvas, | 133 virtual void paint(blink::WebCanvas* canvas, |
134 const blink::WebRect& rect, | 134 const blink::WebRect& rect, |
135 unsigned char alpha, | 135 unsigned char alpha, |
136 SkXfermode::Mode mode); | 136 SkXfermode::Mode mode); |
137 | 137 |
138 bool copyVideoTextureToPlatformTexture( | 138 bool copyVideoTextureToPlatformTexture( |
139 blink::WebGraphicsContext3D* web_graphics_context, | 139 blink::WebGraphicsContext3D* web_graphics_context, |
140 unsigned int texture, | 140 const CopyVideoTextureParams& params) override; |
141 unsigned int internal_format, | |
142 unsigned int type, | |
143 bool premultiply_alpha, | |
144 bool flip_y) override; | |
145 | 141 |
146 // True if the loaded media has a playable video/audio track. | 142 // True if the loaded media has a playable video/audio track. |
147 virtual bool hasVideo() const; | 143 virtual bool hasVideo() const; |
148 virtual bool hasAudio() const; | 144 virtual bool hasAudio() const; |
149 | 145 |
150 virtual bool isRemote() const; | 146 virtual bool isRemote() const; |
151 | 147 |
152 // Dimensions of the video. | 148 // Dimensions of the video. |
153 virtual blink::WebSize naturalSize() const; | 149 virtual blink::WebSize naturalSize() const; |
154 | 150 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 526 |
531 // NOTE: Weak pointers must be invalidated before all other member variables. | 527 // NOTE: Weak pointers must be invalidated before all other member variables. |
532 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 528 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
533 | 529 |
534 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 530 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
535 }; | 531 }; |
536 | 532 |
537 } // namespace content | 533 } // namespace content |
538 | 534 |
539 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 535 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |