| 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 #ifndef SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ | 5 #ifndef SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 6 #define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ | 6 #define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "skia/ext/platform_device_win.h" | 9 #include "skia/ext/platform_device_win.h" |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual SkDeviceFactory* getDeviceFactory() { | 72 virtual SkDeviceFactory* getDeviceFactory() { |
| 73 return SkNEW(BitmapPlatformDeviceFactory); | 73 return SkNEW(BitmapPlatformDeviceFactory); |
| 74 } | 74 } |
| 75 | 75 |
| 76 // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The | 76 // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The |
| 77 // bitmap DC is lazy created. | 77 // bitmap DC is lazy created. |
| 78 virtual HDC getBitmapDC(); | 78 virtual HDC getBitmapDC(); |
| 79 | 79 |
| 80 // Loads the given transform and clipping region into the HDC. This is | 80 // Loads the given transform and clipping region into the HDC. This is |
| 81 // overridden from SkDevice. | 81 // overridden from SkDevice. |
| 82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); | 82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
| 83 const SkClipStack&); |
| 83 | 84 |
| 84 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); | 85 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); |
| 85 virtual void makeOpaque(int x, int y, int width, int height); | 86 virtual void makeOpaque(int x, int y, int width, int height); |
| 86 virtual bool IsVectorial() { return false; } | 87 virtual bool IsVectorial() { return false; } |
| 87 | 88 |
| 88 // Returns the color value at the specified location. This does not | 89 // Returns the color value at the specified location. This does not |
| 89 // consider any transforms that may be set on the device. | 90 // consider any transforms that may be set on the device. |
| 90 SkColor getColorAt(int x, int y); | 91 SkColor getColorAt(int x, int y); |
| 91 | 92 |
| 92 protected: | 93 protected: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 107 | 108 |
| 108 // Data associated with this device, guaranteed non-null. We hold a reference | 109 // Data associated with this device, guaranteed non-null. We hold a reference |
| 109 // to this object. | 110 // to this object. |
| 110 BitmapPlatformDeviceData* data_; | 111 BitmapPlatformDeviceData* data_; |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace skia | 114 } // namespace skia |
| 114 | 115 |
| 115 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ | 116 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 116 | 117 |
| OLD | NEW |