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

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

Issue 115412: Fix Skia includes to use the whole path name. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/image_operations.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 // 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 #include <algorithm> 5 #include <algorithm>
6 6
7 #include "skia/ext/convolver.h" 7 #include "skia/ext/convolver.h"
8 #include "SkTypes.h" 8 #include "third_party/skia/include/core/SkTypes.h"
9 9
10 namespace skia { 10 namespace skia {
11 11
12 namespace { 12 namespace {
13 13
14 // Converts the argument to an 8-bit unsigned value by clamping to the range 14 // Converts the argument to an 8-bit unsigned value by clamping to the range
15 // 0-255. 15 // 0-255.
16 inline unsigned char ClampTo8(int a) { 16 inline unsigned char ClampTo8(int a) {
17 if (static_cast<unsigned>(a) < 256) 17 if (static_cast<unsigned>(a) < 256)
18 return a; // Avoid the extra check in the common case. 18 return a; // Avoid the extra check in the common case.
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 } else { 325 } else {
326 ConvolveVertically<false>(filter_values, filter_length, 326 ConvolveVertically<false>(filter_values, filter_length,
327 first_row_for_filter, 327 first_row_for_filter,
328 filter_x.num_values(), cur_output_row); 328 filter_x.num_values(), cur_output_row);
329 } 329 }
330 } 330 }
331 } 331 }
332 332
333 } // namespace skia 333 } // namespace skia
334 334
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/image_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698