| 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_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
| 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | |
| 9 #include "skia/ext/platform_device_mac.h" | 8 #include "skia/ext/platform_device_mac.h" |
| 10 | 9 |
| 11 namespace skia { | 10 namespace skia { |
| 12 | 11 |
| 13 // A device is basically a wrapper around SkBitmap that provides a surface for | 12 // A device is basically a wrapper around SkBitmap that provides a surface for |
| 14 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also | 13 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also |
| 15 // write to. BitmapPlatformDeviceMac creates a bitmap using | 14 // write to. BitmapPlatformDeviceMac creates a bitmap using |
| 16 // CGCreateBitmapContext() in a format that Skia supports and can then use this | 15 // CGCreateBitmapContext() in a format that Skia supports and can then use this |
| 17 // to draw text into, etc. This pixel data is provided to the bitmap that the | 16 // to draw text into, etc. This pixel data is provided to the bitmap that the |
| 18 // device contains so that it can be shared. | 17 // device contains so that it can be shared. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 adjustAlpha adjustor); | 84 adjustAlpha adjustor); |
| 86 | 85 |
| 87 // Data associated with this device, guaranteed non-null. We hold a reference | 86 // Data associated with this device, guaranteed non-null. We hold a reference |
| 88 // to this object. | 87 // to this object. |
| 89 BitmapPlatformDeviceMacData* data_; | 88 BitmapPlatformDeviceMacData* data_; |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 } // namespace skia | 91 } // namespace skia |
| 93 | 92 |
| 94 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ | 93 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ |
| 95 | |
| OLD | NEW |