| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "ui/gfx/skia_util.h" | 5 #include "ui/gfx/skia_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 8 #include "third_party/skia/include/core/SkColorFilter.h" | 11 #include "third_party/skia/include/core/SkColorFilter.h" |
| 9 #include "third_party/skia/include/core/SkColorPriv.h" | 12 #include "third_party/skia/include/core/SkColorPriv.h" |
| 10 #include "third_party/skia/include/core/SkUnPreMultiply.h" | 13 #include "third_party/skia/include/core/SkUnPreMultiply.h" |
| 11 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" | 14 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" |
| 12 #include "third_party/skia/include/effects/SkGradientShader.h" | 15 #include "third_party/skia/include/effects/SkGradientShader.h" |
| 13 #include "third_party/skia/include/effects/SkLayerDrawLooper.h" | 16 #include "third_party/skia/include/effects/SkLayerDrawLooper.h" |
| 14 #include "ui/gfx/geometry/quad_f.h" | 17 #include "ui/gfx/geometry/quad_f.h" |
| 15 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/gfx/geometry/rect_f.h" | 19 #include "ui/gfx/geometry/rect_f.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 220 } |
| 218 | 221 |
| 219 void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]) { | 222 void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]) { |
| 220 points[0] = PointFToSkPoint(quad.p1()); | 223 points[0] = PointFToSkPoint(quad.p1()); |
| 221 points[1] = PointFToSkPoint(quad.p2()); | 224 points[1] = PointFToSkPoint(quad.p2()); |
| 222 points[2] = PointFToSkPoint(quad.p3()); | 225 points[2] = PointFToSkPoint(quad.p3()); |
| 223 points[3] = PointFToSkPoint(quad.p4()); | 226 points[3] = PointFToSkPoint(quad.p4()); |
| 224 } | 227 } |
| 225 | 228 |
| 226 } // namespace gfx | 229 } // namespace gfx |
| OLD | NEW |