| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H | 5 #ifndef UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H |
| 6 #define UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H | 6 #define UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkEncodedImageFormat.h" | 8 #include "third_party/skia/include/core/SkEncodedImageFormat.h" |
| 9 #include "ui/gfx/gfx_export.h" | 9 #include "ui/gfx/codec/codec_export.h" |
| 10 | 10 |
| 11 class SkWStream; | 11 class SkWStream; |
| 12 class SkPixmap; | 12 class SkPixmap; |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 // Matches signature of Skia's SkEncodeImage, but makes use of Chromium's | 16 // Matches signature of Skia's SkEncodeImage, but makes use of Chromium's |
| 17 // encoders. | 17 // encoders. |
| 18 GFX_EXPORT bool EncodeSkiaImage(SkWStream* dst, | 18 CODEC_EXPORT bool EncodeSkiaImage(SkWStream* dst, |
| 19 const SkPixmap& pixmap, | 19 const SkPixmap& pixmap, |
| 20 SkEncodedImageFormat format, | 20 SkEncodedImageFormat format, |
| 21 int quality); | 21 int quality); |
| 22 | 22 |
| 23 } // namespace gfx | 23 } // namespace gfx |
| 24 | 24 |
| 25 #endif // UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H | 25 #endif // UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H |
| OLD | NEW |