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

Unified Diff: skia/public/interfaces/image_filter_struct_traits.h

Issue 2042413003: Implement cc::FilterOperation StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Addressed Enne's comment Created 4 years, 6 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 | « cc/output/filter_operation.cc ('k') | skia/public/interfaces/test/struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/public/interfaces/image_filter_struct_traits.h
diff --git a/skia/public/interfaces/image_filter_struct_traits.h b/skia/public/interfaces/image_filter_struct_traits.h
index 636dee25660fe055208b04c8bda8dd85dae6cdc3..aa3d003f4591fe3b82b1736d0a3da7b23906a5c6 100644
--- a/skia/public/interfaces/image_filter_struct_traits.h
+++ b/skia/public/interfaces/image_filter_struct_traits.h
@@ -46,8 +46,6 @@ struct StructTraits<skia::mojom::ImageFilter, sk_sp<SkImageFilter>> {
SkFlattenable* flattenable = SkValidatingDeserializeFlattenable(
buffer.data->bytes(), buffer.data->size(),
SkImageFilter::GetFlattenableType());
- if (!flattenable)
- return false;
*out = sk_sp<SkImageFilter>(static_cast<SkImageFilter*>(flattenable));
return true;
}
« no previous file with comments | « cc/output/filter_operation.cc ('k') | skia/public/interfaces/test/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698