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 "base/gfx/vector_device.h" | 5 #include "base/gfx/vector_device.h" |
6 | 6 |
7 #include "base/gfx/bitmap_header.h" | 7 #include "base/gfx/gdi_util.h" |
8 #include "base/gfx/skia_utils.h" | 8 #include "base/gfx/skia_utils.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
11 | 11 |
12 #include "SkUtils.h" | 12 #include "SkUtils.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 VectorDevice* VectorDevice::create(HDC dc, int width, int height) { | 16 VectorDevice* VectorDevice::create(HDC dc, int width, int height) { |
17 InitializeDC(dc); | 17 InitializeDC(dc); |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 reinterpret_cast<const BITMAPINFO*>(&hdr), | 603 reinterpret_cast<const BITMAPINFO*>(&hdr), |
604 DIB_RGB_COLORS, | 604 DIB_RGB_COLORS, |
605 SRCCOPY); | 605 SRCCOPY); |
606 DCHECK(result); | 606 DCHECK(result); |
607 } | 607 } |
608 Cleanup(); | 608 Cleanup(); |
609 } | 609 } |
610 | 610 |
611 } // namespace gfx | 611 } // namespace gfx |
612 | 612 |
OLD | NEW |