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

Unified Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebGraphicsContext3D.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebMediaPlayer.h
diff --git a/third_party/WebKit/public/platform/WebMediaPlayer.h b/third_party/WebKit/public/platform/WebMediaPlayer.h
index 9a5eb43c8da476e4056dc820a44ce3d983061faa..5faa011de7dfd67c9e03a43394fe3e1e0a8ecaf8 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
@@ -40,6 +40,12 @@
#include "WebTimeRange.h"
#include "third_party/skia/include/core/SkXfermode.h"
+namespace gpu {
+namespace gles2 {
+class GLES2Interface;
+}
+}
+
namespace blink {
class WebAudioSourceProvider;
@@ -49,7 +55,6 @@ class WebString;
class WebURL;
struct WebRect;
struct WebSize;
-class WebGraphicsContext3D;
class WebMediaPlayer {
public:
@@ -162,14 +167,14 @@ public:
virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermode::Mode) = 0;
// TODO(dshwang): remove non-|target| version. crbug.com/349871
- virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsigned texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; }
+ virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, unsigned texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; }
// Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns false.
- virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsigned target,
+ virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, unsigned target,
unsigned texture, unsigned internalFormat, unsigned type, int level,
bool premultiplyAlpha, bool flipY) { return false; }
// Copy sub video frame texture to |texture|. If the copy is impossible or fails, it returns false.
- virtual bool copyVideoSubTextureToPlatformTexture(WebGraphicsContext3D*, unsigned target,
+ virtual bool copyVideoSubTextureToPlatformTexture(gpu::gles2::GLES2Interface*, unsigned target,
unsigned texture, int level, int xoffset, int yoffset, bool premultiplyAlpha,
bool flipY) { return false; }
« no previous file with comments | « third_party/WebKit/public/platform/WebGraphicsContext3D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698