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

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

Issue 12911: Move skia_utils_mac from base/gfx to skia/ext. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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
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 "base/gfx/skia_utils_mac.h" 5 #include "skia/ext/skia_utils_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "SkMatrix.h" 8 #include "SkMatrix.h"
9 #include "SkRect.h" 9 #include "SkRect.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 CGAffineTransform SkMatrixToCGAffineTransform(const SkMatrix& matrix) { 13 CGAffineTransform SkMatrixToCGAffineTransform(const SkMatrix& matrix) {
14 // CGAffineTransforms don't support perspective transforms, so make sure 14 // CGAffineTransforms don't support perspective transforms, so make sure
15 // we don't get those. 15 // we don't get those.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Converts ARGB to CGColorRef. 74 // Converts ARGB to CGColorRef.
75 CGColorRef SkColorToCGColorRef(SkColor color) { 75 CGColorRef SkColorToCGColorRef(SkColor color) {
76 return CGColorCreateGenericRGB(SkColorGetR(color) / 255.0, 76 return CGColorCreateGenericRGB(SkColorGetR(color) / 255.0,
77 SkColorGetG(color) / 255.0, 77 SkColorGetG(color) / 255.0,
78 SkColorGetB(color) / 255.0, 78 SkColorGetB(color) / 255.0,
79 SkColorGetA(color) / 255.0); 79 SkColorGetA(color) / 255.0);
80 } 80 }
81 81
82 } // namespace gfx 82 } // namespace gfx
83 83
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698