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

Unified Diff: public/platform/WebMediaPlayer.h

Issue 526073004: Canvas: composite video on canvas correctly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/platform/graphics/skia/SkiaUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMediaPlayer.h
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h
index 497bac55359bd476ca495bb9ae6a02877d729a8e..cf9c7415d7c08aec7b0852135d8aeaefe6c3a673 100644
--- a/public/platform/WebMediaPlayer.h
+++ b/public/platform/WebMediaPlayer.h
@@ -35,6 +35,7 @@
#include "WebMediaSource.h"
#include "WebString.h"
#include "WebTimeRange.h"
+#include "third_party/skia/include/core/SkXfermode.h"
namespace blink {
@@ -112,8 +113,6 @@ public:
virtual WebTimeRanges buffered() const = 0;
virtual double maxTimeSeekable() const = 0;
- virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0;
-
// True if the loaded media has a playable video/audio track.
virtual bool hasVideo() const = 0;
virtual bool hasAudio() const = 0;
@@ -144,6 +143,7 @@ public:
virtual unsigned audioDecodedByteCount() const = 0;
virtual unsigned videoDecodedByteCount() const = 0;
+ virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermode::Mode) = 0;
// Do a GPU-GPU textures copy if possible.
virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsigned texture, unsigned level, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; }
« no previous file with comments | « Source/platform/graphics/skia/SkiaUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698