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

Side by Side Diff: src/core/SkBitmapScaler.h

Issue 2500113004: Port convolve functions to SkOpts (Closed)
Patch Set: Fix typo Created 4 years, 1 month 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 | « gn/opts.gni ('k') | src/core/SkBitmapScaler.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 2013 Google Inc. 2 * Copyright 2013 Google Inc.
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 7
8 #ifndef SkBitmapScaler_DEFINED 8 #ifndef SkBitmapScaler_DEFINED
9 #define SkBitmapScaler_DEFINED 9 #define SkBitmapScaler_DEFINED
10 10
(...skipping 23 matching lines...) Expand all
34 * specified resize-method and write the results into the pixels pointed to by dst. 34 * specified resize-method and write the results into the pixels pointed to by dst.
35 */ 35 */
36 static bool Resize(const SkPixmap& dst, const SkPixmap& src, ResizeMethod me thod); 36 static bool Resize(const SkPixmap& dst, const SkPixmap& src, ResizeMethod me thod);
37 37
38 /** 38 /**
39 * Helper function that manages allocating a bitmap to hold the dst pixels, and then calls 39 * Helper function that manages allocating a bitmap to hold the dst pixels, and then calls
40 * the pixmap version of Resize. 40 * the pixmap version of Resize.
41 */ 41 */
42 static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod metho d, 42 static bool Resize(SkBitmap* result, const SkPixmap& src, ResizeMethod metho d,
43 int dest_width, int dest_height, SkBitmap::Allocator* = n ullptr); 43 int dest_width, int dest_height, SkBitmap::Allocator* = n ullptr);
44
45 /** Platforms can also optionally overwrite the convolution functions
46 if we have SIMD versions of them.
47 */
48
49 static void PlatformConvolutionProcs(SkConvolutionProcs*);
50 }; 44 };
51 45
52 #endif 46 #endif
OLDNEW
« no previous file with comments | « gn/opts.gni ('k') | src/core/SkBitmapScaler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698