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

Side by Side Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 412353003: Remove convertToSkiaFilterLevel() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: also removed function from header file Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698