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

Side by Side Diff: samplecode/SamplePath.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 3 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
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkGraphics.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SampleCode.h" 9 #include "SampleCode.h"
10 #include "SkAnimTimer.h" 10 #include "SkAnimTimer.h"
11 #include "SkView.h" 11 #include "SkView.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "SkGradientShader.h" 13 #include "SkGradientShader.h"
14 #include "SkGraphics.h" 14 #include "SkGraphics.h"
15 #include "SkImageDecoder.h" 15 #include "SkImageDecoder.h"
16 #include "SkPath.h" 16 #include "SkPath.h"
17 #include "SkRegion.h" 17 #include "SkRegion.h"
18 #include "SkShader.h" 18 #include "SkShader.h"
19 #include "SkUtils.h" 19 #include "SkUtils.h"
20 #include "SkXfermode.h" 20 #include "SkXfermode.h"
21 #include "SkColorPriv.h" 21 #include "SkColorPriv.h"
22 #include "SkColorFilter.h" 22 #include "SkColorFilter.h"
23 #include "SkParsePath.h" 23 #include "SkParsePath.h"
24 #include "SkTime.h" 24 #include "SkTime.h"
25 #include "SkTypeface.h" 25 #include "SkTypeface.h"
26 26
27 #include "SkGeometry.h" 27 #include "SkGeometry.h"
28 28
29 #include <stdlib.h>
30
29 // http://code.google.com/p/skia/issues/detail?id=32 31 // http://code.google.com/p/skia/issues/detail?id=32
30 static void test_cubic() { 32 static void test_cubic() {
31 SkPoint src[4] = { 33 SkPoint src[4] = {
32 { 556.25000f, 523.03003f }, 34 { 556.25000f, 523.03003f },
33 { 556.23999f, 522.96002f }, 35 { 556.23999f, 522.96002f },
34 { 556.21997f, 522.89001f }, 36 { 556.21997f, 522.89001f },
35 { 556.21997f, 522.82001f } 37 { 556.21997f, 522.82001f }
36 }; 38 };
37 SkPoint dst[11]; 39 SkPoint dst[11];
38 dst[10].set(42, -42); // one past the end, that we don't clobber these 40 dst[10].set(42, -42); // one past the end, that we don't clobber these
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 340 }
339 } 341 }
340 return this->INHERITED::onFindClickHandler(x, y, modi); 342 return this->INHERITED::onFindClickHandler(x, y, modi);
341 } 343 }
342 344
343 private: 345 private:
344 typedef SampleView INHERITED; 346 typedef SampleView INHERITED;
345 }; 347 };
346 DEF_SAMPLE( return new ArcToView; ) 348 DEF_SAMPLE( return new ArcToView; )
347 349
OLDNEW
« no previous file with comments | « include/core/SkTypes.h ('k') | src/core/SkGraphics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698