| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ImageEncoder_h | 5 #ifndef ImageEncoder_h |
| 6 #define ImageEncoder_h | 6 #define ImageEncoder_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/wtf/Vector.h" | 9 #include "platform/wtf/Vector.h" |
| 10 #include "third_party/skia/include/core/SkStream.h" | 10 #include "third_party/skia/include/core/SkStream.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 static SkWebpEncoder::Options ComputeWebpOptions( | 79 static SkWebpEncoder::Options ComputeWebpOptions( |
| 80 double quality, | 80 double quality, |
| 81 SkTransferFunctionBehavior unpremulBehavior); | 81 SkTransferFunctionBehavior unpremulBehavior); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 ImageEncoder(Vector<unsigned char>* dst) : dst_(dst) {} | 84 ImageEncoder(Vector<unsigned char>* dst) : dst_(dst) {} |
| 85 | 85 |
| 86 VectorWStream dst_; | 86 VectorWStream dst_; |
| 87 std::unique_ptr<SkEncoder> encoder_; | 87 std::unique_ptr<SkEncoder> encoder_; |
| 88 }; | 88 }; |
| 89 }; | 89 }; // namespace blink |
| 90 | 90 |
| 91 #endif | 91 #endif |
| OLD | NEW |