| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 SkISize m_fullSize; | 108 SkISize m_fullSize; |
| 109 | 109 |
| 110 // ThreadSafeDataTransport is referenced by this class and m_encodedData. | 110 // ThreadSafeDataTransport is referenced by this class and m_encodedData. |
| 111 // In case that ImageFrameGenerator get's deleted before m_encodedData, | 111 // In case that ImageFrameGenerator get's deleted before m_encodedData, |
| 112 // m_encodedData would hold the reference to it (and underlying data). | 112 // m_encodedData would hold the reference to it (and underlying data). |
| 113 RefPtr<ThreadSafeDataTransport> m_data; | 113 RefPtr<ThreadSafeDataTransport> m_data; |
| 114 | 114 |
| 115 bool m_isMultiFrame; | 115 bool m_isMultiFrame; |
| 116 bool m_decodeFailed; | 116 bool m_decodeFailed; |
| 117 bool m_yuvDecodingFailed; |
| 117 size_t m_frameCount; | 118 size_t m_frameCount; |
| 118 Vector<bool> m_hasAlpha; | 119 Vector<bool> m_hasAlpha; |
| 119 | 120 |
| 120 class ExternalMemoryAllocator; | 121 class ExternalMemoryAllocator; |
| 121 OwnPtr<ExternalMemoryAllocator> m_externalAllocator; | 122 OwnPtr<ExternalMemoryAllocator> m_externalAllocator; |
| 122 | 123 |
| 123 OwnPtr<ImageDecoderFactory> m_imageDecoderFactory; | 124 OwnPtr<ImageDecoderFactory> m_imageDecoderFactory; |
| 124 | 125 |
| 125 // Prevents multiple decode operations on the same data. | 126 // Prevents multiple decode operations on the same data. |
| 126 Mutex m_decodeMutex; | 127 Mutex m_decodeMutex; |
| 127 | 128 |
| 128 // Protect concurrent access to m_hasAlpha. | 129 // Protect concurrent access to m_hasAlpha. |
| 129 Mutex m_alphaMutex; | 130 Mutex m_alphaMutex; |
| 130 | 131 |
| 131 // Our encoded image data returned in refEncodedData. | 132 // Our encoded image data returned in refEncodedData. |
| 132 SkData* m_encodedData; | 133 SkData* m_encodedData; |
| 133 | 134 |
| 134 #if COMPILER(MSVC) | 135 #if COMPILER(MSVC) |
| 135 friend struct ::WTF::OwnedPtrDeleter<ExternalMemoryAllocator>; | 136 friend struct ::WTF::OwnedPtrDeleter<ExternalMemoryAllocator>; |
| 136 #endif | 137 #endif |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace blink | 140 } // namespace blink |
| 140 | 141 |
| 141 #endif | 142 #endif |
| OLD | NEW |