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

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

Issue 2160363002: Move ImageSerializationProcessor code to blimp/client/core (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split-blimp-client-core
Patch Set: fix public_deps for //blimp/test Created 4 years, 5 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 onQueryYUV8(SkYUVSizeInfo* sizeInfo,
34 SkYUVColorSpace* colorSpace) const override;
35
36 bool onGetYUV8Planes(const SkYUVSizeInfo&,
37 void* planes[3]) override;
38
39 private:
40 SkBitmap decoded_bitmap_;
41
42 DISALLOW_COPY_AND_ASSIGN(DecodingImageGenerator);
43 };
44
45 } // namespace client
46 } // namespace blimp
47
48 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698