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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.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: rebase Created 5 years, 7 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/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index 6aae758164e29d11772263e801bbd10fdbc30d5c..8abdc7459101481a3f110522d9576b2a90ca0482 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -113,6 +113,9 @@ public:
bool isContextLost() const;
+ bool shouldAntialias() const;
+ void setShouldAntialias(bool);
+
String globalCompositeOperation() const;
void setGlobalCompositeOperation(const String&);
@@ -222,7 +225,6 @@ private:
const CanvasRenderingContext2DState& state() const { return *m_stateStack.last(); }
void setShadow(const FloatSize& offset, float blur, RGBA32 color);
- void applyShadow(ShadowMode = DrawShadowAndForeground);
void dispatchContextLostEvent(Timer<CanvasRenderingContext2D>*);
void dispatchContextRestoredEvent(Timer<CanvasRenderingContext2D>*);
@@ -232,17 +234,17 @@ private:
bool computeDirtyRect(const FloatRect& localBounds, const SkIRect& transformedClipBounds, SkIRect*);
void didDraw(const SkIRect&);
- GraphicsContext* drawingContext() const; // Deprecated: use drawingCanvas
SkCanvas* drawingCanvas() const;
void unwindStateStack();
- void realizeSaves(SkCanvas*);
+ void realizeSaves();
+
+ bool shouldDrawImageAntialiased(const FloatRect& destRect) const;
template<typename DrawFunc, typename ContainsFunc>
bool draw(const DrawFunc&, const ContainsFunc&, const SkRect& bounds, CanvasRenderingContext2DState::PaintType, CanvasRenderingContext2DState::ImageType = CanvasRenderingContext2DState::NoImage);
void drawPathInternal(const Path&, CanvasRenderingContext2DState::PaintType, SkPath::FillType = SkPath::kWinding_FillType);
- void drawImageOnContext(CanvasImageSource*, Image*, const FloatRect& srcRect, const FloatRect& dstRect, const SkPaint*);
- void drawVideo(CanvasImageSource*, const FloatRect& srcRect, const FloatRect& dstRect);
+ void drawImageInternal(CanvasImageSource*, Image*, const FloatRect& srcRect, const FloatRect& dstRect, const SkPaint*);
void clipInternal(const Path&, const String& windingRuleString);
bool isPointInPathInternal(const Path&, const float x, const float y, const String& windingRuleString);

Powered by Google App Engine
This is Rietveld 408576698