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

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

Issue 1719533002: Modify YUV codecs to match Skia's API change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update DEPS again Created 4 years, 9 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 | « DEPS ('k') | blimp/client/feature/compositor/decoding_image_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_ 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_ 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/skia/include/core/SkImageGenerator.h" 9 #include "third_party/skia/include/core/SkImageGenerator.h"
10 #include "third_party/skia/include/core/SkImageInfo.h" 10 #include "third_party/skia/include/core/SkImageInfo.h"
(...skipping 12 matching lines...) Expand all
23 ~DecodingImageGenerator() override; 23 ~DecodingImageGenerator() override;
24 24
25 protected: 25 protected:
26 // SkImageGenerator implementation. 26 // SkImageGenerator implementation.
27 bool onGetPixels(const SkImageInfo&, 27 bool onGetPixels(const SkImageInfo&,
28 void* pixels, 28 void* pixels,
29 size_t rowBytes, 29 size_t rowBytes,
30 SkPMColor table[], 30 SkPMColor table[],
31 int* tableCount) override; 31 int* tableCount) override;
32 32
33 bool onGetYUV8Planes(SkISize sizes[3], 33 bool onQueryYUV8(SkYUVSizeInfo* sizeInfo,
34 void* planes[3], 34 SkYUVColorSpace* colorSpace) const override;
35 size_t rowBytes[3], 35
36 SkYUVColorSpace*) override; 36 bool onGetYUV8Planes(const SkYUVSizeInfo&,
37 void* planes[3]) override;
37 38
38 private: 39 private:
39 SkBitmap decoded_bitmap_; 40 SkBitmap decoded_bitmap_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(DecodingImageGenerator); 42 DISALLOW_COPY_AND_ASSIGN(DecodingImageGenerator);
42 }; 43 };
43 44
44 } // namespace client 45 } // namespace client
45 } // namespace blimp 46 } // namespace blimp
46 47
47 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_ 48 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_DECODING_IMAGE_GENERATOR_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | blimp/client/feature/compositor/decoding_image_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698