OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010, The Android Open Source Project | 2 * Copyright 2010, The Android Open Source Project |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 /////////////////////////////////////////////////////////////////////////////// | 239 /////////////////////////////////////////////////////////////////////////////// |
240 DEFINE_ENCODER_CREATOR(WEBPImageEncoder); | 240 DEFINE_ENCODER_CREATOR(WEBPImageEncoder); |
241 /////////////////////////////////////////////////////////////////////////////// | 241 /////////////////////////////////////////////////////////////////////////////// |
242 | 242 |
243 static SkImageEncoder* sk_libwebp_efactory(SkImageEncoder::Type t) { | 243 static SkImageEncoder* sk_libwebp_efactory(SkImageEncoder::Type t) { |
244 return (SkImageEncoder::kWEBP_Type == t) ? new SkWEBPImageEncoder : nullptr; | 244 return (SkImageEncoder::kWEBP_Type == t) ? new SkWEBPImageEncoder : nullptr; |
245 } | 245 } |
246 | 246 |
247 static SkImageEncoder_EncodeReg gEReg(sk_libwebp_efactory); | 247 static SkImageEncoder_EncodeReg gEReg(sk_libwebp_efactory); |
OLD | NEW |