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

Unified Diff: include/core/SkShader.h

Issue 1342113002: add ImageShader, sharing code with its Bitmap cousin (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: now with actual added files Created 5 years, 3 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 | « gyp/core.gypi ('k') | src/core/SkBitmapProcShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkShader.h
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 47934dd9ad9579b4cdd8b0209039e4e90f3f5035..4104c0e1dc54628d900b4801372cf6b5e872b791 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -413,11 +413,12 @@ public:
SK_TO_STRING_VIRT()
SK_DEFINE_FLATTENABLE_TYPE(SkShader)
+ // Should be protected, but sometimes a subclass needs to call it on another shader
+ bool computeTotalInverse(const ContextRec&, SkMatrix* totalInverse) const;
f(malita) 2015/09/15 15:01:41 Befriend SkBitmapProcShader instead?
+
protected:
void flatten(SkWriteBuffer&) const override;
- bool computeTotalInverse(const ContextRec&, SkMatrix* totalInverse) const;
-
/**
* Your subclass must also override contextSize() if it overrides onCreateContext().
* Base class impl returns NULL.
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkBitmapProcShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698