| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1890 isDataComplete); | 1890 isDataComplete); |
| 1891 } | 1891 } |
| 1892 | 1892 |
| 1893 if (resampling == InterpolationNone) { | 1893 if (resampling == InterpolationNone) { |
| 1894 // FIXME: This is to not break tests (it results in the filter bitmap fl
ag | 1894 // FIXME: This is to not break tests (it results in the filter bitmap fl
ag |
| 1895 // being set to true). We need to decide if we respect InterpolationNone | 1895 // being set to true). We need to decide if we respect InterpolationNone |
| 1896 // being returned from computeInterpolationQuality. | 1896 // being returned from computeInterpolationQuality. |
| 1897 resampling = InterpolationLow; | 1897 resampling = InterpolationLow; |
| 1898 } | 1898 } |
| 1899 resampling = limitInterpolationQuality(this, resampling); | 1899 resampling = limitInterpolationQuality(this, resampling); |
| 1900 | 1900 paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling)); |
| 1901 bool useBicubicFilter = resampling == InterpolationHigh; | |
| 1902 paint->setFilterLevel(convertToSkiaFilterLevel(useBicubicFilter, resampling)
); | |
| 1903 } | 1901 } |
| 1904 | 1902 |
| 1905 } | 1903 } |
| OLD | NEW |