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

Unified Diff: ui/gfx/image/image.cc

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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.cc
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc
index 7bfcacd1bb511e7078511e1062fef574f042bf2d..5c81a5519ed6be6637bfbb8da200dfebd4ba061c 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -102,7 +102,6 @@ scoped_refptr<base::RefCountedMemory> Get1xPNGBytesFromImageSkia(
class ImageRepPNG;
class ImageRepSkia;
-class ImageRepGdk;
class ImageRepCocoa;
class ImageRepCocoaTouch;
@@ -697,11 +696,7 @@ void Image::SetSourceColorSpace(CGColorSpaceRef color_space) {
Image::RepresentationType Image::DefaultRepresentationType() const {
CHECK(storage_.get());
- RepresentationType default_type = storage_->default_representation_type();
- // The conversions above assume that the default representation type is never
- // kImageRepCairo.
- DCHECK_NE(default_type, kImageRepCairo);
- return default_type;
+ return storage_->default_representation_type();
}
internal::ImageRep* Image::GetRepresentation(
« no previous file with comments | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698