Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: ui/gfx/image/image.h

Issue 304443002: Remove forward declarations of unused ImageRepGdk and ImageRepCairo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class Size; 45 class Size;
46 46
47 namespace internal { 47 namespace internal {
48 class ImageRep; 48 class ImageRep;
49 class ImageStorage; 49 class ImageStorage;
50 } 50 }
51 51
52 class GFX_EXPORT Image { 52 class GFX_EXPORT Image {
53 public: 53 public:
54 enum RepresentationType { 54 enum RepresentationType {
55 kImageRepGdk,
56 kImageRepCocoa, 55 kImageRepCocoa,
57 kImageRepCocoaTouch, 56 kImageRepCocoaTouch,
58 kImageRepCairo,
59 kImageRepSkia, 57 kImageRepSkia,
60 kImageRepPNG, 58 kImageRepPNG,
61 }; 59 };
62 60
63 typedef std::map<RepresentationType, internal::ImageRep*> RepresentationMap; 61 typedef std::map<RepresentationType, internal::ImageRep*> RepresentationMap;
64 62
65 // Creates an empty image with no representations. 63 // Creates an empty image with no representations.
66 Image(); 64 Image();
67 65
68 // Creates a new image by copying the raw PNG-encoded input for use as the 66 // Creates a new image by copying the raw PNG-encoded input for use as the
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // be cheaply copied. 192 // be cheaply copied.
195 scoped_refptr<internal::ImageStorage> storage_; 193 scoped_refptr<internal::ImageStorage> storage_;
196 194
197 friend class ::ImageTest; 195 friend class ::ImageTest;
198 friend class ::ImageMacTest; 196 friend class ::ImageMacTest;
199 }; 197 };
200 198
201 } // namespace gfx 199 } // namespace gfx
202 200
203 #endif // UI_GFX_IMAGE_IMAGE_H_ 201 #endif // UI_GFX_IMAGE_IMAGE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698