Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(867)

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 972833004: Revert of gpu: introduce glCopySubTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Methods for painting. 123 // Methods for painting.
124 // FIXME: This path "only works" on Android. It is a workaround for the 124 // FIXME: This path "only works" on Android. It is a workaround for the
125 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture 125 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture
126 // internally. It should be removed and replaced by the normal paint path. 126 // internally. It should be removed and replaced by the normal paint path.
127 // https://code.google.com/p/skia/issues/detail?id=1189 127 // https://code.google.com/p/skia/issues/detail?id=1189
128 virtual void paint(blink::WebCanvas* canvas, 128 virtual void paint(blink::WebCanvas* canvas,
129 const blink::WebRect& rect, 129 const blink::WebRect& rect,
130 unsigned char alpha, 130 unsigned char alpha,
131 SkXfermode::Mode mode); 131 SkXfermode::Mode mode);
132 132
133 // TODO(dshwang): remove |level|. crbug.com/443151
134 virtual bool copyVideoTextureToPlatformTexture( 133 virtual bool copyVideoTextureToPlatformTexture(
135 blink::WebGraphicsContext3D* web_graphics_context, 134 blink::WebGraphicsContext3D* web_graphics_context,
136 unsigned int texture, 135 unsigned int texture,
137 unsigned int level, 136 unsigned int level,
138 unsigned int internal_format, 137 unsigned int internal_format,
139 unsigned int type, 138 unsigned int type,
140 bool premultiply_alpha, 139 bool premultiply_alpha,
141 bool flip_y);
142 virtual bool copyVideoTextureToPlatformTexture(
143 blink::WebGraphicsContext3D* web_graphics_context,
144 unsigned int texture,
145 unsigned int internal_format,
146 unsigned int type,
147 bool premultiply_alpha,
148 bool flip_y); 140 bool flip_y);
149 141
150 // True if the loaded media has a playable video/audio track. 142 // True if the loaded media has a playable video/audio track.
151 virtual bool hasVideo() const; 143 virtual bool hasVideo() const;
152 virtual bool hasAudio() const; 144 virtual bool hasAudio() const;
153 145
154 virtual bool isRemote() const; 146 virtual bool isRemote() const;
155 147
156 // Dimensions of the video. 148 // Dimensions of the video.
157 virtual blink::WebSize naturalSize() const; 149 virtual blink::WebSize naturalSize() const;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 505
514 // NOTE: Weak pointers must be invalidated before all other member variables. 506 // NOTE: Weak pointers must be invalidated before all other member variables.
515 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 507 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
516 508
517 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 509 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
518 }; 510 };
519 511
520 } // namespace content 512 } // namespace content
521 513
522 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 514 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698