Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: ui/gfx/codec/skia_image_encoder_adapter.h

Issue 2755563002: Move ui/gfx/codec/ into its own component. (Closed)
Patch Set: none Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« ui/gfx/codec/codec_export.h ('K') | « ui/gfx/codec/png_codec.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
10 9
11 class SkWStream; 10 class SkWStream;
12 class SkPixmap; 11 class SkPixmap;
13 12
13 #include "ui/gfx/codec/codec_export.h"
sky 2017/03/15 19:27:41 Move include with other includes.
14
14 namespace gfx { 15 namespace gfx {
15 16
16 // Matches signature of Skia's SkEncodeImage, but makes use of Chromium's 17 // Matches signature of Skia's SkEncodeImage, but makes use of Chromium's
17 // encoders. 18 // encoders.
18 GFX_EXPORT bool EncodeSkiaImage(SkWStream* dst, 19 CODEC_EXPORT bool EncodeSkiaImage(SkWStream* dst,
19 const SkPixmap& pixmap, 20 const SkPixmap& pixmap,
20 SkEncodedImageFormat format, 21 SkEncodedImageFormat format,
21 int quality); 22 int quality);
22 23
23 } // namespace gfx 24 } // namespace gfx
24 25
25 #endif // UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H 26 #endif // UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H
OLDNEW
« ui/gfx/codec/codec_export.h ('K') | « ui/gfx/codec/png_codec.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698