| 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 "skia/ext/skia_utils_win.h" | 7 #include "skia/ext/skia_utils_win.h" |
| 8 #include "SkMatrix.h" | 8 #include "third_party/skia/include/core/SkMatrix.h" |
| 9 #include "SkPath.h" | 9 #include "third_party/skia/include/core/SkPath.h" |
| 10 #include "SkRegion.h" | 10 #include "third_party/skia/include/core/SkRegion.h" |
| 11 #include "SkUtils.h" | 11 #include "third_party/skia/include/core/SkUtils.h" |
| 12 | 12 |
| 13 namespace skia { | 13 namespace skia { |
| 14 | 14 |
| 15 PlatformDeviceWin::PlatformDeviceWin(const SkBitmap& bitmap) | 15 PlatformDeviceWin::PlatformDeviceWin(const SkBitmap& bitmap) |
| 16 : SkDevice(bitmap) { | 16 : SkDevice(bitmap) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 void PlatformDeviceWin::InitializeDC(HDC context) { | 20 void PlatformDeviceWin::InitializeDC(HDC context) { |
| 21 // Enables world transformation. | 21 // Enables world transformation. |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 hrgn = PathToRegion(context); | 219 hrgn = PathToRegion(context); |
| 220 } | 220 } |
| 221 int result = SelectClipRgn(context, hrgn); | 221 int result = SelectClipRgn(context, hrgn); |
| 222 SkASSERT(result != ERROR); | 222 SkASSERT(result != ERROR); |
| 223 result = DeleteObject(hrgn); | 223 result = DeleteObject(hrgn); |
| 224 SkASSERT(result != 0); | 224 SkASSERT(result != 0); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace skia | 227 } // namespace skia |
| 228 | 228 |
| OLD | NEW |