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

Side by Side Diff: ui/gfx/path.cc

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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 | « ui/gfx/path.h ('k') | ui/gfx/path_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/gfx/path.h"
6
7 #include "base/logging.h"
8
9 namespace gfx {
10
11 Path::Path()
12 : SkPath() {
13 }
14
15 Path::Path(const Point* points, size_t count) {
16 DCHECK(count > 1);
17 moveTo(SkIntToScalar(points[0].x), SkIntToScalar(points[0].y));
18 for (size_t i = 1; i < count; ++i)
19 lineTo(SkIntToScalar(points[i].x), SkIntToScalar(points[i].y));
20 }
21
22 Path::Path(const PointF* points, size_t count) {
23 DCHECK(count > 1);
24 moveTo(SkFloatToScalar(points[0].x), SkFloatToScalar(points[0].y));
25 for (size_t i = 1; i < count; ++i)
26 lineTo(SkFloatToScalar(points[i].x), SkFloatToScalar(points[i].y));
27 }
28
29 Path::~Path() {
30 }
31
32 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/path.h ('k') | ui/gfx/path_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698