OLD | NEW |
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. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // Return the number of bytes in the decoded frame. If the frame is not yet | 135 // Return the number of bytes in the decoded frame. If the frame is not yet |
136 // decoded then return 0. | 136 // decoded then return 0. |
137 unsigned frameBytesAtIndex(size_t) const; | 137 unsigned frameBytesAtIndex(size_t) const; |
138 | 138 |
139 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) | 139 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) |
140 static unsigned maxPixelsPerDecodedImage() { return s_maxPixelsPerDecodedIma
ge; } | 140 static unsigned maxPixelsPerDecodedImage() { return s_maxPixelsPerDecodedIma
ge; } |
141 static void setMaxPixelsPerDecodedImage(unsigned maxPixels) { s_maxPixelsPer
DecodedImage = maxPixels; } | 141 static void setMaxPixelsPerDecodedImage(unsigned maxPixels) { s_maxPixelsPer
DecodedImage = maxPixels; } |
142 #endif | 142 #endif |
143 | 143 |
144 void reportMemoryUsage(MemoryObjectInfo*) const; | |
145 | |
146 private: | 144 private: |
147 OwnPtr<NativeImageDecoderPtr> m_decoder; | 145 OwnPtr<NativeImageDecoderPtr> m_decoder; |
148 | 146 |
149 AlphaOption m_alphaOption; | 147 AlphaOption m_alphaOption; |
150 GammaAndColorProfileOption m_gammaAndColorProfileOption; | 148 GammaAndColorProfileOption m_gammaAndColorProfileOption; |
151 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) | 149 #if ENABLE(IMAGE_DECODER_DOWN_SAMPLING) |
152 static unsigned s_maxPixelsPerDecodedImage; | 150 static unsigned s_maxPixelsPerDecodedImage; |
153 #endif | 151 #endif |
154 }; | 152 }; |
155 | 153 |
156 } | 154 } |
157 | 155 |
158 #endif | 156 #endif |
OLD | NEW |