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

Side by Side Diff: src/codec/SkAndroidRawCodec.h

Issue 1520403003: Prototype of RAW decoding in Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Initial upload of the Prototype. Created 5 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 /*
2 * Copyright 2015 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 SkAndroidRawCodec_DEFINED
9 #define SkAndroidRawCodec_DEFINED
10
11 #include "SkAndroidCodec.h"
12 #include "SkCodec.h"
13 #include "SkEncodedFormat.h"
14 #include "SkRawCodec.h"
15 #include "SkStream.h"
16 #include "SkTypes.h"
17
18 /**
19 * Abstract interface defining image codec functionality that is necessary for
20 * Android.
21 */
22 class SkAndroidRawCodec : public SkAndroidCodec {
djsollen 2015/12/16 20:35:34 Not sure that you need this file at all, but I'll
scroggo 2015/12/18 15:56:26 SkAndroidCodec.cpp needs to be able to call the co
yujieqin 2016/01/06 18:47:18 Renamed the files and class.
23 public:
24
25 explicit SkAndroidRawCodec(SkRawCodec*);
26
27 virtual ~SkAndroidRawCodec() {}
28
29 protected:
30
31 //SkEncodedFormat onGetEncodedFormat() const override { return kRAW_SkEncode dFormat; };
scroggo 2015/12/18 15:56:26 I'm assuming this file does not build with this co
yujieqin 2016/01/06 18:47:18 The default implementation of getEncodedFormat() a
32
33 SkISize onGetSampledDimensions(int sampleSize) const override;
34
35 bool onGetSupportedSubset(SkIRect* desiredSubset) const override { return fa lse; }
36
37 SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels, si ze_t rowBytes,
38 const AndroidOptions& options) override;
39
40 private:
41
42 typedef SkAndroidCodec INHERITED;
43 };
44 #endif // SkAndroidRawCodec_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698