| 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 <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 9 #include "skia/ext/platform_canvas.h" | 11 #include "skia/ext/platform_canvas.h" |
| 10 #include "third_party/skia/include/core/SkPixmap.h" | 12 #include "third_party/skia/include/core/SkPixmap.h" |
| 11 #include "ui/gfx/geometry/point.h" | 13 #include "ui/gfx/geometry/point.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/geometry/vector2d.h" | 15 #include "ui/gfx/geometry/vector2d.h" |
| 14 | 16 |
| 15 #if defined(USE_CAIRO) | 17 #if defined(USE_CAIRO) |
| 16 #if defined(OS_OPENBSD) | 18 #if defined(OS_OPENBSD) |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Fortunately, memmove already handles this for us. | 182 // Fortunately, memmove already handles this for us. |
| 181 for (int y = 0; y < dest_rect.height(); y++) { | 183 for (int y = 0; y < dest_rect.height(); y++) { |
| 182 memmove(pixmap.writable_addr32(dest_rect.x(), dest_rect.y() + y), | 184 memmove(pixmap.writable_addr32(dest_rect.x(), dest_rect.y() + y), |
| 183 pixmap.addr32(src_rect.x(), src_rect.y() + y), | 185 pixmap.addr32(src_rect.x(), src_rect.y() + y), |
| 184 row_bytes); | 186 row_bytes); |
| 185 } | 187 } |
| 186 } | 188 } |
| 187 } | 189 } |
| 188 | 190 |
| 189 } // namespace gfx | 191 } // namespace gfx |
| OLD | NEW |