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

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

Issue 1520403003: Prototype of RAW decoding in Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Set big endian explicitly for arm Created 4 years, 11 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 | « src/codec/SkCodec.cpp ('k') | src/codec/SkRawAdapterCodec.cpp » ('j') | no next file with comments »
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 SkRawAdapterCodec_DEFINED
9 #define SkRawAdapterCodec_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 * This class implements the functionality of SkAndroidCodec. It uses an
20 * SkRawCodec.
21 */
22 class SkRawAdapterCodec : public SkAndroidCodec {
23 public:
24
25 explicit SkRawAdapterCodec(SkRawCodec*);
26
27 virtual ~SkRawAdapterCodec() {}
28
29 protected:
30
31 SkISize onGetSampledDimensions(int sampleSize) const override;
32
33 bool onGetSupportedSubset(SkIRect* /*desiredSubset*/) const override { retur n false; }
34
35 SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels, si ze_t rowBytes,
36 const AndroidOptions& options) override;
37
38 private:
39
40 typedef SkAndroidCodec INHERITED;
41 };
42 #endif // SkRawAdapterCodec_DEFINED
OLDNEW
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkRawAdapterCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698