| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 #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 |
| 11 namespace skia { | 11 namespace skia { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // See warning for copy constructor above. | 69 // See warning for copy constructor above. |
| 70 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); | 70 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); |
| 71 | 71 |
| 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 beginPlatformPaint(); |
| 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 const SkClipStack&); |
| 84 | 84 |
| 85 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); |
| 86 virtual void makeOpaque(int x, int y, int width, int height); | 86 virtual void makeOpaque(int x, int y, int width, int height); |
| 87 virtual bool IsVectorial() { return false; } | 87 virtual bool IsVectorial() { return false; } |
| 88 | 88 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 108 | 108 |
| 109 // 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 |
| 110 // to this object. | 110 // to this object. |
| 111 BitmapPlatformDeviceData* data_; | 111 BitmapPlatformDeviceData* data_; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace skia | 114 } // namespace skia |
| 115 | 115 |
| 116 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ | 116 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 117 | 117 |
| OLD | NEW |