Commit 15d92065 authored by pkotwicz@chromium.org's avatar pkotwicz@chromium.org

Remove forward declarations of unused ImageRepGdk and ImageRepCairo

BUG=None
TEST=None
TBR=rsesek

Review URL: https://codereview.chromium.org/304443002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272837 0039d316-1c4b-4281-b951-d872f2087c98
parent 3d4bce0e
...@@ -102,7 +102,6 @@ scoped_refptr<base::RefCountedMemory> Get1xPNGBytesFromImageSkia( ...@@ -102,7 +102,6 @@ scoped_refptr<base::RefCountedMemory> Get1xPNGBytesFromImageSkia(
class ImageRepPNG; class ImageRepPNG;
class ImageRepSkia; class ImageRepSkia;
class ImageRepGdk;
class ImageRepCocoa; class ImageRepCocoa;
class ImageRepCocoaTouch; class ImageRepCocoaTouch;
...@@ -697,11 +696,7 @@ void Image::SetSourceColorSpace(CGColorSpaceRef color_space) { ...@@ -697,11 +696,7 @@ void Image::SetSourceColorSpace(CGColorSpaceRef color_space) {
Image::RepresentationType Image::DefaultRepresentationType() const { Image::RepresentationType Image::DefaultRepresentationType() const {
CHECK(storage_.get()); CHECK(storage_.get());
RepresentationType default_type = storage_->default_representation_type(); return storage_->default_representation_type();
// The conversions above assume that the default representation type is never
// kImageRepCairo.
DCHECK_NE(default_type, kImageRepCairo);
return default_type;
} }
internal::ImageRep* Image::GetRepresentation( internal::ImageRep* Image::GetRepresentation(
......
...@@ -52,10 +52,8 @@ class ImageStorage; ...@@ -52,10 +52,8 @@ class ImageStorage;
class GFX_EXPORT Image { class GFX_EXPORT Image {
public: public:
enum RepresentationType { enum RepresentationType {
kImageRepGdk,
kImageRepCocoa, kImageRepCocoa,
kImageRepCocoaTouch, kImageRepCocoaTouch,
kImageRepCairo,
kImageRepSkia, kImageRepSkia,
kImageRepPNG, kImageRepPNG,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment