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

Unified Diff: sky/engine/core/html/canvas/CanvasRenderingContext2D.h

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland Created 6 years, 1 month 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: sky/engine/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/sky/engine/core/html/canvas/CanvasRenderingContext2D.h b/sky/engine/core/html/canvas/CanvasRenderingContext2D.h
index 59ceafc7962d2ab15b087add5314f487c366b3c9..a8d6230feeb385b295cffabe85e71b663e6e3383 100644
--- a/sky/engine/core/html/canvas/CanvasRenderingContext2D.h
+++ b/sky/engine/core/html/canvas/CanvasRenderingContext2D.h
@@ -109,14 +109,8 @@ public:
String shadowColor() const;
void setShadowColor(const String&);
- float globalAlpha() const;
- void setGlobalAlpha(float);
-
bool isContextLost() const;
- String globalCompositeOperation() const;
- void setGlobalCompositeOperation(const String&);
-
void save() { ++m_stateStack.last()->m_unrealizedSaveCount; }
void restore();
@@ -179,8 +173,6 @@ public:
void drawImageFromRect(HTMLImageElement*, float sx = 0, float sy = 0, float sw = 0, float sh = 0,
float dx = 0, float dy = 0, float dw = 0, float dh = 0, const String& compositeOperation = emptyString());
- void setAlpha(float);
-
void setCompositeOperation(const String&);
PassRefPtr<CanvasGradient> createLinearGradient(float x0, float y0, float x1, float y1);
@@ -265,9 +257,6 @@ private:
FloatSize m_shadowOffset;
float m_shadowBlur;
RGBA32 m_shadowColor;
- float m_globalAlpha;
- CompositeOperator m_globalComposite;
- blink::WebBlendMode m_globalBlend;
AffineTransform m_transform;
bool m_invertibleCTM;
Vector<float> m_lineDash;
@@ -348,7 +337,6 @@ private:
virtual bool is2d() const override { return true; }
virtual bool isAccelerated() const override;
- virtual bool hasAlpha() const override { return m_hasAlpha; }
virtual void setIsHidden(bool) override;
virtual bool isTransformInvertible() const override { return state().m_invertibleCTM; }
@@ -358,7 +346,6 @@ private:
Vector<OwnPtr<State> > m_stateStack;
OwnPtr<HitRegionManager> m_hitRegionManager;
- bool m_hasAlpha;
bool m_isContextLost;
bool m_contextRestorable;
Canvas2DContextStorage m_storageMode;
« no previous file with comments | « sky/engine/core/html/canvas/Canvas2DContextAttributes.idl ('k') | sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698