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

Unified Diff: src/core/SkFilterShader.cpp

Issue 26702002: force readbuffer clients to use specialized readFoo for flattenables (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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 | « src/core/SkComposeShader.cpp ('k') | src/core/SkFlattenableBuffers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkFilterShader.cpp
diff --git a/src/core/SkFilterShader.cpp b/src/core/SkFilterShader.cpp
index 4fcb9361f199f849a35240ec6096aa86a1f03a04..1e590cb66fffd922c3ab8d3152083423713eb325 100644
--- a/src/core/SkFilterShader.cpp
+++ b/src/core/SkFilterShader.cpp
@@ -22,8 +22,8 @@ SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) {
SkFilterShader::SkFilterShader(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer) {
- fShader = buffer.readFlattenableT<SkShader>();
- fFilter = buffer.readFlattenableT<SkColorFilter>();
+ fShader = buffer.readShader();
+ fFilter = buffer.readColorFilter();
}
SkFilterShader::~SkFilterShader() {
« no previous file with comments | « src/core/SkComposeShader.cpp ('k') | src/core/SkFlattenableBuffers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698