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

Side by Side Diff: skia/ext/convolver.h

Issue 13709: Use crappy apple define instead of OS_ defines since those don't exist for Sk... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_EXT_CONVOLVER_H_ 5 #ifndef SKIA_EXT_CONVOLVER_H_
6 #define SKIA_EXT_CONVOLVER_H_ 6 #define SKIA_EXT_CONVOLVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 // avoid confusion with Mac OS X's math library (Carbon) 10 // avoid confusion with Mac OS X's math library (Carbon)
11 #if defined(OS_MACOSX) 11 #if defined(__APPLE__)
12 #undef FloatToFixed 12 #undef FloatToFixed
13 #endif 13 #endif
14 14
15 namespace skia { 15 namespace skia {
16 16
17 // Represents a filter in one dimension. Each output pixel has one entry in this 17 // Represents a filter in one dimension. Each output pixel has one entry in this
18 // object for the filter values contributing to it. You build up the filter 18 // object for the filter values contributing to it. You build up the filter
19 // list by calling AddFilter for each output pixel (in order). 19 // list by calling AddFilter for each output pixel (in order).
20 // 20 //
21 // We do 2-dimensional convolusion by first convolving each row by one 21 // We do 2-dimensional convolusion by first convolving each row by one
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 int source_byte_row_stride, 126 int source_byte_row_stride,
127 bool source_has_alpha, 127 bool source_has_alpha,
128 const ConvolusionFilter1D& xfilter, 128 const ConvolusionFilter1D& xfilter,
129 const ConvolusionFilter1D& yfilter, 129 const ConvolusionFilter1D& yfilter,
130 unsigned char* output); 130 unsigned char* output);
131 131
132 } // namespace skia 132 } // namespace skia
133 133
134 #endif // SKIA_EXT_CONVOLVER_H_ 134 #endif // SKIA_EXT_CONVOLVER_H_
135 135
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698