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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 645693004: Canvas 2D: Remove CompositeOperator and WebBlendMode parameters in drawImageInternal(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make drawImageInternal() simpler Created 6 years, 2 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 | « no previous file | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index f12666dbf2986157a60b53e59f8ef054391f2f4e..8cc7abc914e99707a84b486bc0dca69ea4756c6b 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -278,7 +278,7 @@ private:
RGBA32 m_shadowColor;
float m_globalAlpha;
CompositeOperator m_globalComposite;
- blink::WebBlendMode m_globalBlend;
+ WebBlendMode m_globalBlend;
AffineTransform m_transform;
bool m_invertibleCTM;
Vector<float> m_lineDash;
@@ -323,7 +323,7 @@ private:
void applyStrokePattern();
void applyFillPattern();
- void drawImageInternal(CanvasImageSource*, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh, ExceptionState&, CompositeOperator, blink::WebBlendMode, GraphicsContext* = 0);
+ void drawImageInternal(CanvasImageSource*, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh, ExceptionState&);
void drawVideo(HTMLVideoElement*, FloatRect srcRect, FloatRect dstRect);
void fillInternal(const Path&, const String& windingRuleString);
@@ -345,8 +345,8 @@ private:
void inflateStrokeRect(FloatRect&) const;
- template<class T> void fullCanvasCompositedFill(const T&);
- template<class T> void fullCanvasCompositedStroke(const T&);
+ enum DrawingType { Fill, Stroke };
+ template<DrawingType drawingType, class T> void fullCanvasCompositedDraw(const T&);
void drawFocusIfNeededInternal(const Path&, Element*);
bool focusRingCallIsValid(const Path&, Element*);
@@ -363,7 +363,7 @@ private:
virtual bool isTransformInvertible() const override { return state().m_invertibleCTM; }
- virtual blink::WebLayer* platformLayer() const override;
+ virtual WebLayer* platformLayer() const override;
TextDirection toTextDirection(Direction, RenderStyle** computedStyle = nullptr) const;
WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack;
« no previous file with comments | « no previous file | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698