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

Side by Side Diff: include/core/SkImageDeserializer.h

Issue 2187613002: Deserialize pictures with custom image-deserializer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix build Created 4 years, 4 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
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | include/core/SkPicture.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkImageDeserializer_DEFINED
9 #define SkImageDeserializer_DEFINED
10
11 #include "SkRefCnt.h"
12
13 struct SkIRect;
14 class SkData;
15 class SkImage;
16
17 class SK_API SkImageDeserializer {
18 public:
19 virtual ~SkImageDeserializer() {}
20
21 /**
22 * Given a data containing serialized content, return an SkImage from it.
23 *
24 * The default implementation is to call SkImage::MakeFromEncoded(...)
25 */
26 virtual sk_sp<SkImage> deserialize(sk_sp<SkData>, const SkIRect* subset);
mtklein 2016/08/10 21:48:31 const sk_sp<SkData>& ? Passing by value (i.e. alw
reed1 2016/08/10 23:43:19 Happy to go either way. Will switch to pointer.
27 };
28
29 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | include/core/SkPicture.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698