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

Side by Side Diff: src/core/SkDraw.cpp

Issue 1084433002: change hairline procs to take SkPoint by value, more efficient on SSE and NEON (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | src/core/SkScan.h » ('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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #define __STDC_LIMIT_MACROS 7 #define __STDC_LIMIT_MACROS
8 8
9 #include "SkDraw.h" 9 #include "SkDraw.h"
10 #include "SkBlitter.h" 10 #include "SkBlitter.h"
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 } 1869 }
1870 } 1870 }
1871 } 1871 }
1872 1872
1873 #if defined _WIN32 && _MSC_VER >= 1300 1873 #if defined _WIN32 && _MSC_VER >= 1300
1874 #pragma warning ( pop ) 1874 #pragma warning ( pop )
1875 #endif 1875 #endif
1876 1876
1877 /////////////////////////////////////////////////////////////////////////////// 1877 ///////////////////////////////////////////////////////////////////////////////
1878 1878
1879 typedef void (*HairProc)(const SkPoint&, const SkPoint&, const SkRasterClip&, 1879 typedef void (*HairProc)(SkPoint, SkPoint, const SkRasterClip&, SkBlitter*);
1880 SkBlitter*);
1881 1880
1882 static HairProc ChooseHairProc(bool doAntiAlias) { 1881 static HairProc ChooseHairProc(bool doAntiAlias) {
1883 return doAntiAlias ? SkScan::AntiHairLine : SkScan::HairLine; 1882 return doAntiAlias ? SkScan::AntiHairLine : SkScan::HairLine;
1884 } 1883 }
1885 1884
1886 static bool texture_to_matrix(const VertState& state, const SkPoint verts[], 1885 static bool texture_to_matrix(const VertState& state, const SkPoint verts[],
1887 const SkPoint texs[], SkMatrix* matrix) { 1886 const SkPoint texs[], SkMatrix* matrix) {
1888 SkPoint src[3], dst[3]; 1887 SkPoint src[3], dst[3];
1889 1888
1890 src[0] = texs[state.f0]; 1889 src[0] = texs[state.f0];
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 mask->fImage = SkMask::AllocImage(size); 2268 mask->fImage = SkMask::AllocImage(size);
2270 memset(mask->fImage, 0, mask->computeImageSize()); 2269 memset(mask->fImage, 0, mask->computeImageSize());
2271 } 2270 }
2272 2271
2273 if (SkMask::kJustComputeBounds_CreateMode != mode) { 2272 if (SkMask::kJustComputeBounds_CreateMode != mode) {
2274 draw_into_mask(*mask, devPath, style); 2273 draw_into_mask(*mask, devPath, style);
2275 } 2274 }
2276 2275
2277 return true; 2276 return true;
2278 } 2277 }
OLDNEW
« no previous file with comments | « no previous file | src/core/SkScan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698