| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Poster image, as defined in the <video> element. | 105 // Poster image, as defined in the <video> element. |
| 106 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; | 106 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; |
| 107 | 107 |
| 108 // Methods for painting. | 108 // Methods for painting. |
| 109 // FIXME: This path "only works" on Android. It is a workaround for the | 109 // FIXME: This path "only works" on Android. It is a workaround for the |
| 110 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture | 110 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture |
| 111 // internally. It should be removed and replaced by the normal paint path. | 111 // internally. It should be removed and replaced by the normal paint path. |
| 112 // https://code.google.com/p/skia/issues/detail?id=1189 | 112 // https://code.google.com/p/skia/issues/detail?id=1189 |
| 113 virtual void paint(blink::WebCanvas* canvas, | 113 virtual void paint(blink::WebCanvas* canvas, |
| 114 const blink::WebRect& rect, | 114 const blink::WebRect& rect, |
| 115 unsigned char alpha, |
| 116 SkXfermode::Mode mode); |
| 117 // TODO(dshwang): remove it. |
| 118 virtual void paint(blink::WebCanvas* canvas, |
| 119 const blink::WebRect& rect, |
| 115 unsigned char alpha); | 120 unsigned char alpha); |
| 116 | 121 |
| 117 virtual bool copyVideoTextureToPlatformTexture( | 122 virtual bool copyVideoTextureToPlatformTexture( |
| 118 blink::WebGraphicsContext3D* web_graphics_context, | 123 blink::WebGraphicsContext3D* web_graphics_context, |
| 119 unsigned int texture, | 124 unsigned int texture, |
| 120 unsigned int level, | 125 unsigned int level, |
| 121 unsigned int internal_format, | 126 unsigned int internal_format, |
| 122 unsigned int type, | 127 unsigned int type, |
| 123 bool premultiply_alpha, | 128 bool premultiply_alpha, |
| 124 bool flip_y); | 129 bool flip_y); |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 457 |
| 453 // NOTE: Weak pointers must be invalidated before all other member variables. | 458 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 454 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 459 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 455 | 460 |
| 456 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 461 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 457 }; | 462 }; |
| 458 | 463 |
| 459 } // namespace content | 464 } // namespace content |
| 460 | 465 |
| 461 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 466 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |