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

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

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 enum GammaAndColorProfileOption { 70 enum GammaAndColorProfileOption {
71 GammaAndColorProfileApplied, 71 GammaAndColorProfileApplied,
72 GammaAndColorProfileIgnored 72 GammaAndColorProfileIgnored
73 }; 73 };
74 74
75 ImageSource(AlphaOption alphaOption = AlphaPremultiplied, GammaAndColorProfi leOption gammaAndColorProfileOption = GammaAndColorProfileApplied); 75 ImageSource(AlphaOption alphaOption = AlphaPremultiplied, GammaAndColorProfi leOption gammaAndColorProfileOption = GammaAndColorProfileApplied);
76 ~ImageSource(); 76 ~ImageSource();
77 77
78 // Tells the ImageSource that the Image no longer cares about decoded frame 78 // Tells the ImageSource that the Image no longer cares about decoded frame
79 // data except for the specified frame. Callers may pass WTF::notFound to 79 // data except for the specified frame. Callers may pass WTF::kNotFound to
80 // clear all frames. 80 // clear all frames.
81 // 81 //
82 // In response, the ImageSource should delete cached decoded data for other 82 // In response, the ImageSource should delete cached decoded data for other
83 // frames where possible to keep memory use low. The expectation is that in 83 // frames where possible to keep memory use low. The expectation is that in
84 // the future, the caller may call createFrameAtIndex() with an index larger 84 // the future, the caller may call createFrameAtIndex() with an index larger
85 // than the one passed to this function, and the implementation may then 85 // than the one passed to this function, and the implementation may then
86 // make use of the preserved frame data here in decoding that frame. 86 // make use of the preserved frame data here in decoding that frame.
87 // By contrast, callers who call this function and then later ask for an 87 // By contrast, callers who call this function and then later ask for an
88 // earlier frame may require more work to be done, e.g. redecoding the image 88 // earlier frame may require more work to be done, e.g. redecoding the image
89 // from the beginning. 89 // from the beginning.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 private: 126 private:
127 OwnPtr<DeferredImageDecoder> m_decoder; 127 OwnPtr<DeferredImageDecoder> m_decoder;
128 128
129 AlphaOption m_alphaOption; 129 AlphaOption m_alphaOption;
130 GammaAndColorProfileOption m_gammaAndColorProfileOption; 130 GammaAndColorProfileOption m_gammaAndColorProfileOption;
131 }; 131 };
132 132
133 } 133 }
134 134
135 #endif 135 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/BitmapImage.cpp ('k') | Source/core/platform/graphics/SVGGlyph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698