| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "skia/ext/vector_device.h" | 5 #include "skia/ext/vector_device.h" |
| 6 | 6 |
| 7 #include "base/gfx/gdi_util.h" | 7 #include "base/gfx/gdi_util.h" |
| 8 #include "skia/ext/skia_utils_win.h" | 8 #include "skia/ext/skia_utils_win.h" |
| 9 | 9 #include "third_party/skia/include/core/SkUtils.h" |
| 10 #include "SkUtils.h" | |
| 11 | 10 |
| 12 namespace skia { | 11 namespace skia { |
| 13 | 12 |
| 14 VectorDevice* VectorDevice::create(HDC dc, int width, int height) { | 13 VectorDevice* VectorDevice::create(HDC dc, int width, int height) { |
| 15 InitializeDC(dc); | 14 InitializeDC(dc); |
| 16 | 15 |
| 17 // Link the SkBitmap to the current selected bitmap in the device context. | 16 // Link the SkBitmap to the current selected bitmap in the device context. |
| 18 SkBitmap bitmap; | 17 SkBitmap bitmap; |
| 19 HGDIOBJ selected_bitmap = GetCurrentObject(dc, OBJ_BITMAP); | 18 HGDIOBJ selected_bitmap = GetCurrentObject(dc, OBJ_BITMAP); |
| 20 bool succeeded = false; | 19 bool succeeded = false; |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 reinterpret_cast<const BITMAPINFO*>(&hdr), | 603 reinterpret_cast<const BITMAPINFO*>(&hdr), |
| 605 DIB_RGB_COLORS, | 604 DIB_RGB_COLORS, |
| 606 SRCCOPY); | 605 SRCCOPY); |
| 607 SkASSERT(result); | 606 SkASSERT(result); |
| 608 } | 607 } |
| 609 Cleanup(); | 608 Cleanup(); |
| 610 } | 609 } |
| 611 | 610 |
| 612 } // namespace skia | 611 } // namespace skia |
| 613 | 612 |
| OLD | NEW |