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