| 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/blit.h" | 5 #include "ui/gfx/blit.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
| 10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/geometry/point.h" |
| 11 #include "ui/gfx/geometry/vector2d.h" |
| 11 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
| 12 #include "ui/gfx/vector2d.h" | |
| 13 | 13 |
| 14 #if defined(USE_CAIRO) | 14 #if defined(USE_CAIRO) |
| 15 #if defined(OS_OPENBSD) | 15 #if defined(OS_OPENBSD) |
| 16 #include <cairo.h> | 16 #include <cairo.h> |
| 17 #elif defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 17 #elif defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 18 #include <cairo/cairo.h> | 18 #include <cairo/cairo.h> |
| 19 #endif | 19 #endif |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 #if defined(OS_MACOSX) | 22 #if defined(OS_MACOSX) |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // Fortunately, memmove already handles this for us. | 194 // Fortunately, memmove already handles this for us. |
| 195 for (int y = 0; y < dest_rect.height(); y++) { | 195 for (int y = 0; y < dest_rect.height(); y++) { |
| 196 memmove(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y), | 196 memmove(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y), |
| 197 bitmap.getAddr32(src_rect.x(), src_rect.y() + y), | 197 bitmap.getAddr32(src_rect.x(), src_rect.y() + y), |
| 198 row_bytes); | 198 row_bytes); |
| 199 } | 199 } |
| 200 } | 200 } |
| 201 } | 201 } |
| 202 | 202 |
| 203 } // namespace gfx | 203 } // namespace gfx |
| OLD | NEW |