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

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

Issue 15466003: Remove image decoder down sampling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove virtual setSize() from GIF decoder 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
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007-2008 Torch Mobile, Inc.
4 * 3 *
5 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
7 * are met: 6 * are met:
8 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
13 * 12 *
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 128
130 float frameDurationAtIndex(size_t) const; 129 float frameDurationAtIndex(size_t) const;
131 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall y used any alpha. 130 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall y used any alpha.
132 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu lly received. 131 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu lly received.
133 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation 132 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation
134 133
135 // Return the number of bytes in the decoded frame. If the frame is not yet 134 // Return the number of bytes in the decoded frame. If the frame is not yet
136 // decoded then return 0. 135 // decoded then return 0.
137 unsigned frameBytesAtIndex(size_t) const; 136 unsigned frameBytesAtIndex(size_t) const;
138 137
139 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING)
140 static unsigned maxPixelsPerDecodedImage() { return s_maxPixelsPerDecodedIma ge; }
141 static void setMaxPixelsPerDecodedImage(unsigned maxPixels) { s_maxPixelsPer DecodedImage = maxPixels; }
142 #endif
143
144 void reportMemoryUsage(MemoryObjectInfo*) const; 138 void reportMemoryUsage(MemoryObjectInfo*) const;
145 139
146 private: 140 private:
147 OwnPtr<NativeImageDecoderPtr> m_decoder; 141 OwnPtr<NativeImageDecoderPtr> m_decoder;
148 142
149 AlphaOption m_alphaOption; 143 AlphaOption m_alphaOption;
150 GammaAndColorProfileOption m_gammaAndColorProfileOption; 144 GammaAndColorProfileOption m_gammaAndColorProfileOption;
151 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING)
152 static unsigned s_maxPixelsPerDecodedImage;
153 #endif
154 }; 145 };
155 146
156 } 147 }
157 148
158 #endif 149 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/Image.cpp ('k') | Source/core/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698