OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 // Use the given decoder to decode. If a decoder is not given then try to cr eate one. | 103 // Use the given decoder to decode. If a decoder is not given then try to cr eate one. |
104 // Returns true if decoding was complete. | 104 // Returns true if decoding was complete. |
105 bool decode(size_t index, ImageDecoder**, SkBitmap*); | 105 bool decode(size_t index, ImageDecoder**, SkBitmap*); |
106 | 106 |
107 SkISize m_fullSize; | 107 SkISize m_fullSize; |
108 ThreadSafeDataTransport m_data; | 108 ThreadSafeDataTransport m_data; |
109 bool m_isMultiFrame; | 109 bool m_isMultiFrame; |
110 bool m_decodeFailedAndEmpty; | 110 bool m_decodeFailedAndEmpty; |
111 Vector<bool> m_hasAlpha; | 111 Vector<bool> m_hasAlpha; |
112 int m_decodeCount; | 112 int m_decodeCount; |
113 Vector<bool> m_frameComplete; | |
114 size_t m_framesCount; | |
Alpha Left Google
2014/11/05 00:31:00
This should be named m_frameCount to be consistent
Zhenyu Shan
2014/11/05 06:49:09
Done.
| |
113 OwnPtr<ExternalMemoryAllocator> m_externalAllocator; | 115 OwnPtr<ExternalMemoryAllocator> m_externalAllocator; |
114 | 116 |
115 OwnPtr<ImageDecoderFactory> m_imageDecoderFactory; | 117 OwnPtr<ImageDecoderFactory> m_imageDecoderFactory; |
116 | 118 |
117 // Prevents multiple decode operations on the same data. | 119 // Prevents multiple decode operations on the same data. |
118 Mutex m_decodeMutex; | 120 Mutex m_decodeMutex; |
119 | 121 |
120 // Protect concurrent access to m_hasAlpha. | 122 // Protect concurrent access to m_hasAlpha. |
121 Mutex m_alphaMutex; | 123 Mutex m_alphaMutex; |
122 }; | 124 }; |
123 | 125 |
124 } // namespace blink | 126 } // namespace blink |
125 | 127 |
126 #endif | 128 #endif |
OLD | NEW |