| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |