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/image/image_skia_operations.h" | 5 #include "ui/gfx/image/image_skia_operations.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
9 #include "skia/ext/image_operations.h" | 12 #include "skia/ext/image_operations.h" |
10 #include "ui/gfx/canvas.h" | 13 #include "ui/gfx/canvas.h" |
11 #include "ui/gfx/geometry/insets.h" | 14 #include "ui/gfx/geometry/insets.h" |
12 #include "ui/gfx/geometry/point.h" | 15 #include "ui/gfx/geometry/point.h" |
13 #include "ui/gfx/geometry/point_conversions.h" | 16 #include "ui/gfx/geometry/point_conversions.h" |
14 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
15 #include "ui/gfx/geometry/rect_conversions.h" | 18 #include "ui/gfx/geometry/rect_conversions.h" |
16 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
17 #include "ui/gfx/geometry/size_conversions.h" | 20 #include "ui/gfx/geometry/size_conversions.h" |
18 #include "ui/gfx/image/canvas_image_source.h" | 21 #include "ui/gfx/image/canvas_image_source.h" |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 return ImageSkia(); | 542 return ImageSkia(); |
540 | 543 |
541 return ImageSkia(new RotatedSource(source, rotation), | 544 return ImageSkia(new RotatedSource(source, rotation), |
542 SkBitmapOperations::ROTATION_180_CW == rotation ? | 545 SkBitmapOperations::ROTATION_180_CW == rotation ? |
543 source.size() : | 546 source.size() : |
544 gfx::Size(source.height(), source.width())); | 547 gfx::Size(source.height(), source.width())); |
545 | 548 |
546 } | 549 } |
547 | 550 |
548 } // namespace gfx | 551 } // namespace gfx |
OLD | NEW |