Index: skia/ext/convolver_SSE2.cc |
diff --git a/skia/ext/convolver_SSE2.cc b/skia/ext/convolver_SSE2.cc |
index a823edcb519291d89ed79c448efa98f9569bb788..9a9c9b70e56e2ac91abaa2e0156b7af02cf4fb9b 100644 |
--- a/skia/ext/convolver_SSE2.cc |
+++ b/skia/ext/convolver_SSE2.cc |
@@ -14,6 +14,7 @@ namespace skia { |
// Convolves horizontally along a single row. The row data is given in |
// |src_data| and continues for the num_values() of the filter. |
+template<bool has_alpha> |
Stephen White
2013/05/13 14:08:43
If this function is going to ignore has_alpha anyw
Teodora Novkovic
2013/05/13 16:23:06
Done.
|
void ConvolveHorizontally_SSE2(const unsigned char* src_data, |
const ConvolutionFilter1D& filter, |
unsigned char* out_row) { |
@@ -453,4 +454,18 @@ void ConvolveVertically_SSE2(const ConvolutionFilter1D::Fixed* filter_values, |
} |
} |
+void ConvolveHorizontally_SSE2(const unsigned char* src_data, |
+ const ConvolutionFilter1D& filter, |
+ unsigned char* out_row, |
+ bool has_alpha) { |
+ if (has_alpha) { |
+ ConvolveHorizontally_SSE2<true>(src_data, |
+ filter, |
+ out_row); |
+ } else { |
+ ConvolveHorizontally_SSE2<false>(src_data, |
+ filter, |
+ out_row); |
+ } |
+} |
} // namespace skia |