OLD | NEW |
---|---|
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 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 | 118 |
119 // Returns the total number of bytes allocated for all framebuffers, i.e. | 119 // Returns the total number of bytes allocated for all framebuffers, i.e. |
120 // the sum of m_source.frameBytesAtIndex(...) for all frames. | 120 // the sum of m_source.frameBytesAtIndex(...) for all frames. |
121 size_t totalFrameBytes(); | 121 size_t totalFrameBytes(); |
122 | 122 |
123 // Called to wipe out the entire frame buffer cache and tell the image | 123 // Called to wipe out the entire frame buffer cache and tell the image |
124 // source to destroy everything; this is used when e.g. we want to free | 124 // source to destroy everything; this is used when e.g. we want to free |
125 // some room in the image cache. | 125 // some room in the image cache. |
126 void destroyDecodedData() override; | 126 void destroyDecodedData() override; |
127 | 127 |
128 PassRefPtr<SharedBuffer> data() override; | |
129 SharedBuffer* cachedData(); | |
scroggo_chromium
2016/06/20 19:00:43
Why does this return a raw pointer?
It calls a me
hajimehoshi
2016/06/22 09:42:29
Done.
| |
130 | |
128 // Notifies observers that the memory footprint has changed. | 131 // Notifies observers that the memory footprint has changed. |
129 void notifyMemoryChanged(); | 132 void notifyMemoryChanged(); |
130 | 133 |
131 // Whether or not size is available yet. | 134 // Whether or not size is available yet. |
132 bool isSizeAvailable(); | 135 bool isSizeAvailable(); |
133 | 136 |
134 // Animation. | 137 // Animation. |
135 // We start and stop animating lazily. Animation starts when the image is | 138 // We start and stop animating lazily. Animation starts when the image is |
136 // rendered, and automatically stops once no observer wants to render the | 139 // rendered, and automatically stops once no observer wants to render the |
137 // image. | 140 // image. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable has the final overall image size yet. | 183 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable has the final overall image size yet. |
181 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO. | 184 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi rst image frame yet from ImageIO. |
182 mutable bool m_haveFrameCount : 1; | 185 mutable bool m_haveFrameCount : 1; |
183 }; | 186 }; |
184 | 187 |
185 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 188 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
186 | 189 |
187 } // namespace blink | 190 } // namespace blink |
188 | 191 |
189 #endif | 192 #endif |
OLD | NEW |