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

Unified Diff: Source/core/html/HTMLVideoElement.h

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for overdraw optimization failures and fix for mac build Created 5 years, 8 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
Index: Source/core/html/HTMLVideoElement.h
diff --git a/Source/core/html/HTMLVideoElement.h b/Source/core/html/HTMLVideoElement.h
index edef11b3669c2c95d8418220cba69471648a9bc4..53670f7e2097b865cef5c430ed21d009eac56ab8 100644
--- a/Source/core/html/HTMLVideoElement.h
+++ b/Source/core/html/HTMLVideoElement.h
@@ -30,12 +30,10 @@
#include "core/html/canvas/CanvasImageSource.h"
#include "platform/graphics/GraphicsTypes3D.h"
-namespace blink {
-class WebGraphicsContext3D;
-}
+class SkPaint;
namespace blink {
-
+class WebGraphicsContext3D;
class ExceptionState;
class HTMLImageLoader;
class GraphicsContext;
@@ -66,7 +64,7 @@ public:
unsigned webkitDroppedFrameCount() const;
// Used by canvas to gain raw pixel access
- void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const;
+ void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const;
// Used by WebGL to do GPU-GPU textures copy if possible.
bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObject texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flipY);

Powered by Google App Engine
This is Rietveld 408576698