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

Side by Side Diff: skia/ext/skia_encode_image.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.
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 SKIA_EXT_SKIA_ENCODE_IMAGE_H
6 #define SKIA_EXT_SKIA_ENCODE_IMAGE_H
7
8 #include "third_party/skia/include/core/SkEncodedImageFormat.h"
9 #include "third_party/skia/include/core/SkTypes.h"
10
11 class SkPixmap;
12 class SkWStream;
13
14 namespace skia {
15
16 typedef bool (*ImageEncoder)(SkWStream*,
17 const SkPixmap&,
18 SkEncodedImageFormat,
19 int quality);
dcheng 2016/12/20 19:40:47 Prefer using A = B over typedef B A in new code.
hal.canary 2016/12/20 20:45:08 Done.
20
21 SK_API void SetImageEncoder(ImageEncoder);
22
23 } // namespace skia
24
25 #endif // SKIA_EXT_SKIA_ENCODE_IMAGE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698