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

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

Issue 2527833002: Implement SkEncodeImage() (Closed)
Patch Set: remove size check Created 4 years 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
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
dcheng 2016/12/20 19:40:47 Nit: rename this file to something like skia_image
hal.canary 2016/12/20 20:45:08 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_CODEC_INSTALL_SKIA_CODEC_H
6 #define UI_GFX_CODEC_INSTALL_SKIA_CODEC_H
7
8 #include "third_party/skia/include/core/SkEncodedImageFormat.h"
9 #include "ui/gfx/gfx_export.h"
10
11 class SkWStream;
12 class SkPixmap;
13
14 namespace gfx {
15
16 // Matches signature of Skia's SkEncodeImage, but makes use of Chromium's
17 // encoders.
18 GFX_EXPORT bool EncodeImage(SkWStream* dst,
dcheng 2016/12/20 19:40:47 Nit: call this something less generic, since it's
hal.canary 2016/12/20 20:45:09 Done.
19 const SkPixmap& pixmap,
20 SkEncodedImageFormat format,
21 int quality);
22
23 } // namespace gfx
24
25 #endif // UI_GFX_CODEC_INSTALL_SKIA_CODEC_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698