| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 : m_type(type) | 172 : m_type(type) |
| 173 , m_amount(stdDeviation) | 173 , m_amount(stdDeviation) |
| 174 , m_dropShadowOffset(offset) | 174 , m_dropShadowOffset(offset) |
| 175 , m_dropShadowColor(color) | 175 , m_dropShadowColor(color) |
| 176 , m_zoomInset(0) | 176 , m_zoomInset(0) |
| 177 { | 177 { |
| 178 WEBKIT_ASSERT(m_type == FilterTypeDropShadow); | 178 WEBKIT_ASSERT(m_type == FilterTypeDropShadow); |
| 179 memset(m_matrix, 0, sizeof(m_matrix)); | 179 memset(m_matrix, 0, sizeof(m_matrix)); |
| 180 } | 180 } |
| 181 | 181 |
| 182 WEBKIT_EXPORT WebFilterOperation(FilterType, SkScalar matrix[20]); | 182 BLINK_COMMON_EXPORT WebFilterOperation(FilterType, SkScalar matrix[20]); |
| 183 | 183 |
| 184 WebFilterOperation(FilterType type, float amount, int inset) | 184 WebFilterOperation(FilterType type, float amount, int inset) |
| 185 : m_type(type) | 185 : m_type(type) |
| 186 , m_amount(amount) | 186 , m_amount(amount) |
| 187 , m_dropShadowOffset(0, 0) | 187 , m_dropShadowOffset(0, 0) |
| 188 , m_dropShadowColor(0) | 188 , m_dropShadowColor(0) |
| 189 , m_zoomInset(inset) | 189 , m_zoomInset(inset) |
| 190 { | 190 { |
| 191 WEBKIT_ASSERT(m_type == FilterTypeZoom); | 191 WEBKIT_ASSERT(m_type == FilterTypeZoom); |
| 192 memset(m_matrix, 0, sizeof(m_matrix)); | 192 memset(m_matrix, 0, sizeof(m_matrix)); |
| 193 } | 193 } |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 inline bool operator==(const WebFilterOperation& a, const WebFilterOperation& b) | 196 inline bool operator==(const WebFilterOperation& a, const WebFilterOperation& b) |
| 197 { | 197 { |
| 198 return a.equals(b); | 198 return a.equals(b); |
| 199 } | 199 } |
| 200 | 200 |
| 201 inline bool operator!=(const WebFilterOperation& a, const WebFilterOperation& b) | 201 inline bool operator!=(const WebFilterOperation& a, const WebFilterOperation& b) |
| 202 { | 202 { |
| 203 return !(a == b); | 203 return !(a == b); |
| 204 } | 204 } |
| 205 | 205 |
| 206 } | 206 } |
| 207 | 207 |
| 208 #endif | 208 #endif |
| OLD | NEW |