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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "skia/ext/image_operations.h" | 9 #include "skia/ext/image_operations.h" |
10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| 11 #include "ui/gfx/geometry/insets.h" |
| 12 #include "ui/gfx/geometry/point.h" |
11 #include "ui/gfx/image/canvas_image_source.h" | 13 #include "ui/gfx/image/canvas_image_source.h" |
12 #include "ui/gfx/image/image_skia.h" | 14 #include "ui/gfx/image/image_skia.h" |
13 #include "ui/gfx/image/image_skia_rep.h" | 15 #include "ui/gfx/image/image_skia_rep.h" |
14 #include "ui/gfx/image/image_skia_source.h" | 16 #include "ui/gfx/image/image_skia_source.h" |
15 #include "ui/gfx/insets.h" | |
16 #include "ui/gfx/point.h" | |
17 #include "ui/gfx/point_conversions.h" | 17 #include "ui/gfx/point_conversions.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "ui/gfx/rect_conversions.h" | 19 #include "ui/gfx/rect_conversions.h" |
20 #include "ui/gfx/size.h" | 20 #include "ui/gfx/size.h" |
21 #include "ui/gfx/size_conversions.h" | 21 #include "ui/gfx/size_conversions.h" |
22 #include "ui/gfx/skbitmap_operations.h" | 22 #include "ui/gfx/skbitmap_operations.h" |
23 #include "ui/gfx/skia_util.h" | 23 #include "ui/gfx/skia_util.h" |
24 | 24 |
25 namespace gfx { | 25 namespace gfx { |
26 namespace { | 26 namespace { |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 return ImageSkia(); | 546 return ImageSkia(); |
547 | 547 |
548 return ImageSkia(new RotatedSource(source, rotation), | 548 return ImageSkia(new RotatedSource(source, rotation), |
549 SkBitmapOperations::ROTATION_180_CW == rotation ? | 549 SkBitmapOperations::ROTATION_180_CW == rotation ? |
550 source.size() : | 550 source.size() : |
551 gfx::Size(source.height(), source.width())); | 551 gfx::Size(source.height(), source.width())); |
552 | 552 |
553 } | 553 } |
554 | 554 |
555 } // namespace gfx | 555 } // namespace gfx |
OLD | NEW |