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 // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage, | 5 // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage, |
6 // or a SkBitmap. This also provides easy conversion to other image types | 6 // or a SkBitmap. This also provides easy conversion to other image types |
7 // through operator overloading. It will cache the converted representations | 7 // through operator overloading. It will cache the converted representations |
8 // internally to prevent double-conversion. | 8 // internally to prevent double-conversion. |
9 // | 9 // |
10 // The lifetime of both the initial representation and any converted ones are | 10 // The lifetime of both the initial representation and any converted ones are |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 #if defined(TOOLKIT_GTK) | 47 #if defined(TOOLKIT_GTK) |
48 class CairoCachedSurface; | 48 class CairoCachedSurface; |
49 #endif | 49 #endif |
50 | 50 |
51 namespace internal { | 51 namespace internal { |
52 class ImageRep; | 52 class ImageRep; |
53 class ImageStorage; | 53 class ImageStorage; |
54 } | 54 } |
55 | 55 |
56 class UI_EXPORT Image { | 56 class GFX_EXPORT Image { |
57 public: | 57 public: |
58 enum RepresentationType { | 58 enum RepresentationType { |
59 kImageRepGdk, | 59 kImageRepGdk, |
60 kImageRepCocoa, | 60 kImageRepCocoa, |
61 kImageRepCocoaTouch, | 61 kImageRepCocoaTouch, |
62 kImageRepCairo, | 62 kImageRepCairo, |
63 kImageRepSkia, | 63 kImageRepSkia, |
64 kImageRepPNG, | 64 kImageRepPNG, |
65 }; | 65 }; |
66 | 66 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // be cheaply copied. | 202 // be cheaply copied. |
203 scoped_refptr<internal::ImageStorage> storage_; | 203 scoped_refptr<internal::ImageStorage> storage_; |
204 | 204 |
205 friend class ::ImageTest; | 205 friend class ::ImageTest; |
206 friend class ::ImageMacTest; | 206 friend class ::ImageMacTest; |
207 }; | 207 }; |
208 | 208 |
209 } // namespace gfx | 209 } // namespace gfx |
210 | 210 |
211 #endif // UI_GFX_IMAGE_IMAGE_H_ | 211 #endif // UI_GFX_IMAGE_IMAGE_H_ |
OLD | NEW |