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

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

Issue 895153002: Make CanvasRenderingContext2D use SkCanvas directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix issue with the copy composite operator Created 5 years, 10 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/core/html/HTMLCanvasElement.cpp ('k') | 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 c30f9490bef37c90483ac38e3e3309ced7808294..87cdbe8bc6b82c543a05017b624f44f0a8d201a2 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -39,7 +39,6 @@
#include "platform/fonts/Font.h"
#include "platform/graphics/Color.h"
#include "platform/geometry/FloatSize.h"
-#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/GraphicsTypes.h"
#include "platform/graphics/ImageBuffer.h"
#include "platform/graphics/Path.h"
@@ -250,6 +249,7 @@ private:
String m_unparsedFillColor;
RefPtrWillBeMember<CanvasStyle> m_strokeStyle;
RefPtrWillBeMember<CanvasStyle> m_fillStyle;
+
float m_lineWidth;
LineCap m_lineCap;
LineJoin m_lineJoin;
@@ -297,10 +297,11 @@ private:
bool computeDirtyRect(const FloatRect& localBounds, const FloatRect& transformedClipBounds, FloatRect*);
void didDraw(const FloatRect&);
- GraphicsContext* drawingContext() const;
+ GraphicsContext* drawingContext() const; // Deprecated: use drawingCanvas
+ SkCanvas* drawingCanvas() const;
void unwindStateStack();
- void realizeSaves(GraphicsContext*);
+ void realizeSaves(SkCanvas*);
void applyStrokePattern();
void applyFillPattern();
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698