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

Side by Side Diff: blimp/client/feature/compositor/decoding_image_generator.h

Issue 1680333004: Add support for encoding/decoding WebP images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serialize-deserialize-images-framework
Patch Set: address minor last comments Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 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 BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
7
8 #include "base/macros.h"
9 #include "third_party/skia/include/core/SkImageGenerator.h"
10 #include "third_party/skia/include/core/SkImageInfo.h"
11
12 class SkData;
13
14 namespace blimp {
15 namespace client {
16
17 class DecodingImageGenerator : public SkImageGenerator {
18 public:
19 static SkImageGenerator* create(SkData* data);
20 explicit DecodingImageGenerator(const SkImageInfo info,
21 const void* data,
22 size_t size);
23 ~DecodingImageGenerator() override;
24
25 protected:
26 // SkImageGenerator implementation.
27 bool onGetPixels(const SkImageInfo&,
28 void* pixels,
29 size_t rowBytes,
30 SkPMColor table[],
31 int* tableCount) override;
32
33 bool onGetYUV8Planes(SkISize sizes[3],
34 void* planes[3],
35 size_t rowBytes[3],
36 SkYUVColorSpace*) override;
37
38 private:
39 SkBitmap decoded_bitmap_;
40
41 DISALLOW_COPY_AND_ASSIGN(DecodingImageGenerator);
42 };
43
44 } // namespace client
45 } // namespace blimp
46
47 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
OLDNEW
« no previous file with comments | « blimp/client/app/blimp_startup.cc ('k') | blimp/client/feature/compositor/decoding_image_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698