| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_ | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_ | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 10 #include "skia/ext/platform_device.h" | 10 #include "skia/ext/platform_device.h" |
| 11 #include "skia/ext/refptr.h" | 11 #include "skia/ext/refptr.h" |
| 12 | 12 |
| 13 namespace skia { | 13 namespace skia { |
| 14 | 14 |
| 15 // A device is basically a wrapper around SkBitmap that provides a surface for | 15 // A device is basically a wrapper around SkBitmap that provides a surface for |
| 16 // SkCanvas to draw into. Our device provides a surface Windows can also write | 16 // SkCanvas to draw into. Our device provides a surface Windows can also write |
| 17 // to. BitmapPlatformDevice creates a bitmap using CreateDIBSection() in a | 17 // to. BitmapPlatformDevice creates a bitmap using CreateDIBSection() in a |
| 18 // format that Skia supports and can then use this to draw ClearType into, etc. | 18 // format that Skia supports and can then use this to draw ClearType into, etc. |
| 19 // This pixel data is provided to the bitmap that the device contains so that it | 19 // This pixel data is provided to the bitmap that the device contains so that it |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 #ifdef SK_DEBUG | 106 #ifdef SK_DEBUG |
| 107 int begin_paint_count_; | 107 int begin_paint_count_; |
| 108 #endif | 108 #endif |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); | 110 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace skia | 113 } // namespace skia |
| 114 | 114 |
| 115 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_ | 115 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_WIN_H_ |
| OLD | NEW |