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

Unified Diff: Source/platform/graphics/GraphicsContextState.h

Issue 358893002: Use newImageSnapshot() to get an image from a Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bitmap caching for Shaders/Patterns from StaticBitmapImage/SkImage Created 6 years, 4 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/platform/graphics/GraphicsContextState.h
diff --git a/Source/platform/graphics/GraphicsContextState.h b/Source/platform/graphics/GraphicsContextState.h
index 0cfb967baa30827506eaa868f753975490302fb7..923946b09ece76033fd1ec389fc3c7b8253e9093 100644
--- a/Source/platform/graphics/GraphicsContextState.h
+++ b/Source/platform/graphics/GraphicsContextState.h
@@ -81,7 +81,7 @@ public:
void setStrokeGradient(const PassRefPtr<Gradient>);
void clearStrokeGradient();
- void setStrokePattern(const PassRefPtr<Pattern>);
+ void setStrokePattern(const PassRefPtr<Pattern>, SkShader::ShaderLocation preferredLocation);
void clearStrokePattern();
void setLineCap(LineCap);
@@ -102,7 +102,7 @@ public:
void clearFillGradient();
Pattern* fillPattern() const { return m_fillPattern.get(); }
- void setFillPattern(const PassRefPtr<Pattern>);
+ void setFillPattern(const PassRefPtr<Pattern>, SkShader::ShaderLocation preferredLocation);
void clearFillPattern();
// Path fill rule

Powered by Google App Engine
This is Rietveld 408576698