| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 sk_sp<SkImage> CreateFrameImageAtIndex(size_t index, bool known_to_be_opaque); | 92 sk_sp<SkImage> CreateFrameImageAtIndex(size_t index, bool known_to_be_opaque); |
| 93 | 93 |
| 94 void SetDataInternal(RefPtr<SharedBuffer> data, | 94 void SetDataInternal(RefPtr<SharedBuffer> data, |
| 95 bool all_data_received, | 95 bool all_data_received, |
| 96 bool push_data_to_decoder); | 96 bool push_data_to_decoder); |
| 97 | 97 |
| 98 // Copy of the data that is passed in, used by deferred decoding. | 98 // Copy of the data that is passed in, used by deferred decoding. |
| 99 // Allows creating readonly snapshots that may be read in another thread. | 99 // Allows creating readonly snapshots that may be read in another thread. |
| 100 std::unique_ptr<SkRWBuffer> rw_buffer_; | 100 std::unique_ptr<SkRWBuffer> rw_buffer_; |
| 101 bool all_data_received_; | |
| 102 std::unique_ptr<ImageDecoder> actual_decoder_; | 101 std::unique_ptr<ImageDecoder> actual_decoder_; |
| 103 | 102 |
| 104 String filename_extension_; | 103 String filename_extension_; |
| 105 IntSize size_; | 104 IntSize size_; |
| 106 int repetition_count_; | 105 int repetition_count_; |
| 107 bool has_embedded_color_space_ = false; | 106 bool has_embedded_color_space_ = false; |
| 108 sk_sp<SkColorSpace> color_space_for_sk_images_; | 107 bool all_data_received_; |
| 109 bool can_yuv_decode_; | 108 bool can_yuv_decode_; |
| 110 bool has_hot_spot_; | 109 bool has_hot_spot_; |
| 110 sk_sp<SkColorSpace> color_space_for_sk_images_; |
| 111 IntPoint hot_spot_; | 111 IntPoint hot_spot_; |
| 112 | 112 |
| 113 // Caches frame state information. | 113 // Caches frame state information. |
| 114 Vector<DeferredFrameData> frame_data_; | 114 Vector<DeferredFrameData> frame_data_; |
| 115 RefPtr<ImageFrameGenerator> frame_generator_; | 115 RefPtr<ImageFrameGenerator> frame_generator_; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| 119 | 119 |
| 120 #endif | 120 #endif |
| OLD | NEW |