| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_emf_win.h" | 7 #include "skia/ext/vector_platform_device_emf_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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 void VectorPlatformDeviceEmf::setMatrixClip(const SkMatrix& transform, | 428 void VectorPlatformDeviceEmf::setMatrixClip(const SkMatrix& transform, |
| 429 const SkRegion& region, | 429 const SkRegion& region, |
| 430 const SkClipStack&) { | 430 const SkClipStack&) { |
| 431 transform_ = transform; | 431 transform_ = transform; |
| 432 LoadTransformToDC(hdc_, transform_); | 432 LoadTransformToDC(hdc_, transform_); |
| 433 clip_region_ = region; | 433 clip_region_ = region; |
| 434 if (!clip_region_.isEmpty()) | 434 if (!clip_region_.isEmpty()) |
| 435 LoadClipRegion(); | 435 LoadClipRegion(); |
| 436 } | 436 } |
| 437 | 437 |
| 438 void VectorPlatformDeviceEmf::drawToHDC(HDC dc, int x, int y, | 438 void VectorPlatformDeviceEmf::DrawToNativeContext(HDC dc, int x, int y, |
| 439 const RECT* src_rect) { | 439 const RECT* src_rect) { |
| 440 SkASSERT(false); | 440 SkASSERT(false); |
| 441 } | 441 } |
| 442 | 442 |
| 443 void VectorPlatformDeviceEmf::LoadClipRegion() { | 443 void VectorPlatformDeviceEmf::LoadClipRegion() { |
| 444 SkMatrix t; | 444 SkMatrix t; |
| 445 t.reset(); | 445 t.reset(); |
| 446 LoadClippingRegionToDC(hdc_, clip_region_, t); | 446 LoadClippingRegionToDC(hdc_, clip_region_, t); |
| 447 } | 447 } |
| 448 | 448 |
| 449 bool VectorPlatformDeviceEmf::CreateBrush(bool use_brush, COLORREF color) { | 449 bool VectorPlatformDeviceEmf::CreateBrush(bool use_brush, COLORREF color) { |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 DIB_RGB_COLORS, | 728 DIB_RGB_COLORS, |
| 729 SRCCOPY); | 729 SRCCOPY); |
| 730 SkASSERT(result); | 730 SkASSERT(result); |
| 731 } | 731 } |
| 732 EndPlatformPaint(); | 732 EndPlatformPaint(); |
| 733 Cleanup(); | 733 Cleanup(); |
| 734 } | 734 } |
| 735 | 735 |
| 736 } // namespace skia | 736 } // namespace skia |
| 737 | 737 |
| OLD | NEW |