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

Side by Side Diff: Source/core/platform/graphics/Image.h

Issue 15466003: Remove image decoder down sampling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 ImageObserver* imageObserver() const { return m_imageObserver; } 108 ImageObserver* imageObserver() const { return m_imageObserver; }
109 void setImageObserver(ImageObserver* observer) { m_imageObserver = observer; } 109 void setImageObserver(ImageObserver* observer) { m_imageObserver = observer; }
110 110
111 enum TileRule { StretchTile, RoundTile, SpaceTile, RepeatTile }; 111 enum TileRule { StretchTile, RoundTile, SpaceTile, RepeatTile };
112 112
113 virtual PassNativeImagePtr nativeImageForCurrentFrame() { return 0; } 113 virtual PassNativeImagePtr nativeImageForCurrentFrame() { return 0; }
114 114
115 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A ffineTransform& patternTransform, 115 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A ffineTransform& patternTransform,
116 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode = BlendModeNormal); 116 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator, const FloatRect& destRect, BlendMode = BlendModeNormal);
117 117
118 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING)
119 FloatRect adjustSourceRectForDownSampling(const FloatRect& srcRect, const In tSize& scaledSize) const;
120 #endif
121
122 #if !ASSERT_DISABLED 118 #if !ASSERT_DISABLED
123 virtual bool notSolidColor() { return true; } 119 virtual bool notSolidColor() { return true; }
124 #endif 120 #endif
125 121
126 virtual void reportMemoryUsage(MemoryObjectInfo*) const; 122 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
127 123
128 protected: 124 protected:
129 Image(ImageObserver* = 0); 125 Image(ImageObserver* = 0);
130 126
131 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, c onst Color&, ColorSpace styleColorSpace, CompositeOperator); 127 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, c onst Color&, ColorSpace styleColorSpace, CompositeOperator);
(...skipping 10 matching lines...) Expand all
142 virtual Color solidColor() const { return Color(); } 138 virtual Color solidColor() const { return Color(); }
143 139
144 private: 140 private:
145 RefPtr<SharedBuffer> m_encodedImageData; 141 RefPtr<SharedBuffer> m_encodedImageData;
146 ImageObserver* m_imageObserver; 142 ImageObserver* m_imageObserver;
147 }; 143 };
148 144
149 } 145 }
150 146
151 #endif 147 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/graphics/Image.cpp » ('j') | Source/core/platform/image-decoders/gif/GIFImageDecoder.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698