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

Side by Side Diff: skia/ext/skia_utils.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/skia_utils.h ('k') | skia/ext/skia_utils_mac.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 "skia/ext/skia_utils.h" 5 #include "skia/ext/skia_utils.h"
6 #include "SkColorPriv.h" 6 #include "third_party/skia/include/core/SkColorPriv.h"
7 #include "SkGradientShader.h" 7 #include "third_party/skia/include/effects/SkGradientShader.h"
8 8
9 namespace skia { 9 namespace skia {
10 10
11 SkShader* CreateGradientShader(int start_point, 11 SkShader* CreateGradientShader(int start_point,
12 int end_point, 12 int end_point,
13 SkColor start_color, 13 SkColor start_color,
14 SkColor end_color) { 14 SkColor end_color) {
15 SkColor grad_colors[2] = { start_color, end_color}; 15 SkColor grad_colors[2] = { start_color, end_color};
16 SkPoint grad_points[2]; 16 SkPoint grad_points[2];
17 grad_points[0].set(SkIntToScalar(0), SkIntToScalar(start_point)); 17 grad_points[0].set(SkIntToScalar(0), SkIntToScalar(start_point));
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 ((shift.l - 0.5) * 2.0); 143 ((shift.l - 0.5) * 2.0);
144 } 144 }
145 } 145 }
146 146
147 return skia::HSLToSKColor(0xff, hsl); 147 return skia::HSLToSKColor(0xff, hsl);
148 } 148 }
149 149
150 150
151 } // namespace skia 151 } // namespace skia
152 152
OLDNEW
« no previous file with comments | « skia/ext/skia_utils.h ('k') | skia/ext/skia_utils_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698