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

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

Issue 1008173003: Move SkPaint mangement for 2D canvas into CanvasRenderingContext2DState (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: applied review comments Created 5 years, 9 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 e132f848d2c7a55197bdba337485a8b223c67d2c..dc0c5c619da21d3b0d71b5a350f6b0f554d34840 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -32,6 +32,7 @@
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#include "core/html/canvas/CanvasPathMethods.h"
#include "core/html/canvas/CanvasRenderingContext.h"
+#include "core/html/canvas/CanvasRenderingContext2DState.h"
#include "platform/graphics/GraphicsTypes.h"
#include "wtf/HashMap.h"
#include "wtf/ListHashSet.h"
@@ -43,7 +44,6 @@ namespace blink { class WebLayer; }
namespace blink {
class CanvasImageSource;
-class CanvasRenderingContext2DState;
class Element;
class ExceptionState;
class FloatRect;
@@ -223,7 +223,6 @@ private:
void applyLineDash() const;
void setShadow(const FloatSize& offset, float blur, RGBA32 color);
void applyShadow(ShadowMode = DrawShadowAndForeground);
- bool shouldDrawShadows() const;
void dispatchContextLostEvent(Timer<CanvasRenderingContext2D>*);
void dispatchContextRestoredEvent(Timer<CanvasRenderingContext2D>*);
@@ -261,7 +260,8 @@ private:
void inflateStrokeRect(FloatRect&) const;
- void fullCanvasCompositedDraw(PassOwnPtr<Closure> draw);
+ void fullCanvasCompositedDraw(PassOwnPtr<Closure> draw); // deprecated
+ void fullCanvasCompositedDraw(PassOwnPtr<Function<void(SkCanvas*, const SkPaint*)>>, CanvasRenderingContext2DState::PaintType, OpacityMode bitmapOpacity);
void drawFocusIfNeededInternal(const Path&, Element*);
bool focusRingCallIsValid(const Path&, Element*);
« 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