| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "skia/ext/vector_platform_device_win.h" | 7 #include "skia/ext/vector_platform_device_win.h" |
| 8 | 8 |
| 9 #include "skia/ext/bitmap_platform_device.h" | 9 #include "skia/ext/bitmap_platform_device.h" |
| 10 #include "skia/ext/skia_utils_win.h" | 10 #include "skia/ext/skia_utils_win.h" |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 408 |
| 409 // These aren't used in the code. Verify this assumption. | 409 // These aren't used in the code. Verify this assumption. |
| 410 SkASSERT(!paint.getColorFilter()); | 410 SkASSERT(!paint.getColorFilter()); |
| 411 SkASSERT(!paint.getRasterizer()); | 411 SkASSERT(!paint.getRasterizer()); |
| 412 // Reuse code to load Win32 Fonts. | 412 // Reuse code to load Win32 Fonts. |
| 413 SkASSERT(!paint.getTypeface()); | 413 SkASSERT(!paint.getTypeface()); |
| 414 return true; | 414 return true; |
| 415 } | 415 } |
| 416 | 416 |
| 417 void VectorPlatformDevice::setMatrixClip(const SkMatrix& transform, | 417 void VectorPlatformDevice::setMatrixClip(const SkMatrix& transform, |
| 418 const SkRegion& region) { | 418 const SkRegion& region, |
| 419 const SkClipStack&) { |
| 419 transform_ = transform; | 420 transform_ = transform; |
| 420 LoadTransformToDC(hdc_, transform_); | 421 LoadTransformToDC(hdc_, transform_); |
| 421 clip_region_ = region; | 422 clip_region_ = region; |
| 422 if (!clip_region_.isEmpty()) | 423 if (!clip_region_.isEmpty()) |
| 423 LoadClipRegion(); | 424 LoadClipRegion(); |
| 424 } | 425 } |
| 425 | 426 |
| 426 void VectorPlatformDevice::drawToHDC(HDC dc, int x, int y, | 427 void VectorPlatformDevice::drawToHDC(HDC dc, int x, int y, |
| 427 const RECT* src_rect) { | 428 const RECT* src_rect) { |
| 428 SkASSERT(false); | 429 SkASSERT(false); |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 reinterpret_cast<const BITMAPINFO*>(&hdr), | 715 reinterpret_cast<const BITMAPINFO*>(&hdr), |
| 715 DIB_RGB_COLORS, | 716 DIB_RGB_COLORS, |
| 716 SRCCOPY); | 717 SRCCOPY); |
| 717 SkASSERT(result); | 718 SkASSERT(result); |
| 718 } | 719 } |
| 719 Cleanup(); | 720 Cleanup(); |
| 720 } | 721 } |
| 721 | 722 |
| 722 } // namespace skia | 723 } // namespace skia |
| 723 | 724 |
| OLD | NEW |