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

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

Issue 65012: Move skia to DEPS, and put it in third_party. (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/SkTypeface_fake.cpp ('k') | skia/ext/image_operations_unittest.cc » ('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 #define _USE_MATH_DEFINES 5 #define _USE_MATH_DEFINES
6 #include <cmath> 6 #include <cmath>
7 #include <limits> 7 #include <limits>
8 #include <vector> 8 #include <vector>
9 9
10 #include "skia/ext/image_operations.h" 10 #include "skia/ext/image_operations.h"
11 11
12 #include "base/gfx/rect.h" 12 #include "base/gfx/rect.h"
13 #include "base/gfx/size.h" 13 #include "base/gfx/size.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/stack_container.h" 15 #include "base/stack_container.h"
16 #include "SkBitmap.h" 16 #include "SkBitmap.h"
17 #include "SkColorPriv.h"
17 #include "skia/ext/convolver.h" 18 #include "skia/ext/convolver.h"
18 #include "skia/include/SkColorPriv.h"
19 19
20 namespace skia { 20 namespace skia {
21 21
22 // TODO(brettw) remove this and put this file in the skia namespace. 22 // TODO(brettw) remove this and put this file in the skia namespace.
23 using namespace gfx; 23 using namespace gfx;
24 24
25 namespace { 25 namespace {
26 26
27 // Returns the ceiling/floor as an integer. 27 // Returns the ceiling/floor as an integer.
28 inline int CeilInt(float val) { 28 inline int CeilInt(float val) {
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 558
559 dst_row[x] = source_row[x_pix]; 559 dst_row[x] = source_row[x_pix];
560 } 560 }
561 } 561 }
562 562
563 return cropped; 563 return cropped;
564 } 564 }
565 565
566 } // namespace skia 566 } // namespace skia
567 567
OLDNEW
« no previous file with comments | « skia/ext/SkTypeface_fake.cpp ('k') | skia/ext/image_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698