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/platform_device_win.h" | 5 #include "skia/ext/platform_device_win.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/gfx/skia_utils.h" | 8 #include "skia/ext/skia_utils_win.h" |
9 #include "SkMatrix.h" | 9 #include "SkMatrix.h" |
10 #include "SkPath.h" | 10 #include "SkPath.h" |
11 #include "SkRegion.h" | 11 #include "SkRegion.h" |
12 #include "SkUtils.h" | 12 #include "SkUtils.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 PlatformDeviceWin::PlatformDeviceWin(const SkBitmap& bitmap) | 16 PlatformDeviceWin::PlatformDeviceWin(const SkBitmap& bitmap) |
17 : SkDevice(bitmap) { | 17 : SkDevice(bitmap) { |
18 } | 18 } |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 hrgn = PathToRegion(context); | 220 hrgn = PathToRegion(context); |
221 } | 221 } |
222 int result = SelectClipRgn(context, hrgn); | 222 int result = SelectClipRgn(context, hrgn); |
223 DCHECK_NE(result, ERROR); | 223 DCHECK_NE(result, ERROR); |
224 result = DeleteObject(hrgn); | 224 result = DeleteObject(hrgn); |
225 DCHECK_NE(result, 0); | 225 DCHECK_NE(result, 0); |
226 } | 226 } |
227 | 227 |
228 } // namespace gfx | 228 } // namespace gfx |
229 | 229 |
OLD | NEW |