| 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 | 7 |
| 8 #include "skia/ext/platform_device_win.h" | 8 #include "skia/ext/platform_device_win.h" |
| 9 | 9 |
| 10 namespace skia { | 10 namespace skia { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // around to another routine willing to deal with the bitmap data directly. | 57 // around to another routine willing to deal with the bitmap data directly. |
| 58 BitmapPlatformDevice(const BitmapPlatformDevice& other); | 58 BitmapPlatformDevice(const BitmapPlatformDevice& other); |
| 59 virtual ~BitmapPlatformDevice(); | 59 virtual ~BitmapPlatformDevice(); |
| 60 | 60 |
| 61 // See warning for copy constructor above. | 61 // See warning for copy constructor above. |
| 62 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); | 62 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); |
| 63 | 63 |
| 64 // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The | 64 // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The |
| 65 // bitmap DC is lazy created. | 65 // bitmap DC is lazy created. |
| 66 virtual HDC getBitmapDC(); | 66 virtual HDC getBitmapDC(); |
| 67 |
| 68 // Loads the given transform and clipping region into the HDC. This is |
| 69 // overridden from SkDevice. |
| 67 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); | 70 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); |
| 68 | 71 |
| 69 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); | 72 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); |
| 70 virtual void makeOpaque(int x, int y, int width, int height); | 73 virtual void makeOpaque(int x, int y, int width, int height); |
| 71 virtual bool IsVectorial() { return false; } | 74 virtual bool IsVectorial() { return false; } |
| 72 | 75 |
| 73 // Returns the color value at the specified location. This does not | 76 // Returns the color value at the specified location. This does not |
| 74 // consider any transforms that may be set on the device. | 77 // consider any transforms that may be set on the device. |
| 75 SkColor getColorAt(int x, int y); | 78 SkColor getColorAt(int x, int y); |
| 76 | 79 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 92 | 95 |
| 93 // Data associated with this device, guaranteed non-null. We hold a reference | 96 // Data associated with this device, guaranteed non-null. We hold a reference |
| 94 // to this object. | 97 // to this object. |
| 95 BitmapPlatformDeviceData* data_; | 98 BitmapPlatformDeviceData* data_; |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 } // namespace skia | 101 } // namespace skia |
| 99 | 102 |
| 100 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ | 103 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 101 | 104 |
| OLD | NEW |