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

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

Issue 244243002: Pass SharedBuffer by reference to DeferredImageDecoder::setData() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // 91 //
92 // Implementations may elect to preserve more frames than the one requested 92 // Implementations may elect to preserve more frames than the one requested
93 // here if doing so is likely to save CPU time in the future, but will pay 93 // here if doing so is likely to save CPU time in the future, but will pay
94 // an increased memory cost to do so. 94 // an increased memory cost to do so.
95 // 95 //
96 // Returns the number of bytes of frame data actually cleared. 96 // Returns the number of bytes of frame data actually cleared.
97 size_t clearCacheExceptFrame(size_t); 97 size_t clearCacheExceptFrame(size_t);
98 98
99 bool initialized() const; 99 bool initialized() const;
100 100
101 void setData(SharedBuffer* data, bool allDataReceived); 101 void setData(SharedBuffer& data, bool allDataReceived);
102 String filenameExtension() const; 102 String filenameExtension() const;
103 103
104 bool isSizeAvailable(); 104 bool isSizeAvailable();
105 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con st; 105 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con st;
106 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI mageOrientation) const; 106 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI mageOrientation) const;
107 107
108 bool getHotSpot(IntPoint&) const; 108 bool getHotSpot(IntPoint&) const;
109 109
110 int repetitionCount(); 110 int repetitionCount();
111 111
(...skipping 13 matching lines...) Expand all
125 private: 125 private:
126 OwnPtr<DeferredImageDecoder> m_decoder; 126 OwnPtr<DeferredImageDecoder> m_decoder;
127 127
128 AlphaOption m_alphaOption; 128 AlphaOption m_alphaOption;
129 GammaAndColorProfileOption m_gammaAndColorProfileOption; 129 GammaAndColorProfileOption m_gammaAndColorProfileOption;
130 }; 130 };
131 131
132 } 132 }
133 133
134 #endif 134 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698