| 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 #include "blimp/client/feature/compositor/decoding_image_generator.h" | 5 #include "blimp/client/feature/compositor/decoding_image_generator.h" |
| 6 | 6 |
| 7 #include "blimp/common/compositor/webp_decoder.h" | 7 #include "blimp/common/compositor/webp_decoder.h" |
| 8 #include "third_party/libwebp/webp/decode.h" | 8 #include "third_party/libwebp/webp/decode.h" |
| 9 #include "third_party/libwebp/webp/demux.h" | 9 #include "third_party/libwebp/webp/demux.h" |
| 10 #include "third_party/skia/include/core/SkData.h" | 10 #include "third_party/skia/include/core/SkData.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 SkPMColor table[], | 40 SkPMColor table[], |
| 41 int* tableCount) { | 41 int* tableCount) { |
| 42 SkAutoLockPixels bitmapLock(decoded_bitmap_); | 42 SkAutoLockPixels bitmapLock(decoded_bitmap_); |
| 43 if (decoded_bitmap_.getPixels() != pixels) { | 43 if (decoded_bitmap_.getPixels() != pixels) { |
| 44 return decoded_bitmap_.copyPixelsTo(pixels, rowBytes * info.height(), | 44 return decoded_bitmap_.copyPixelsTo(pixels, rowBytes * info.height(), |
| 45 rowBytes); | 45 rowBytes); |
| 46 } | 46 } |
| 47 return true; | 47 return true; |
| 48 } | 48 } |
| 49 | 49 |
| 50 bool DecodingImageGenerator::onGetYUV8Planes(SkISize sizes[3], | 50 bool DecodingImageGenerator::onQueryYUV8(SkYUVSizeInfo* sizeInfo, |
| 51 void* planes[3], | 51 SkYUVColorSpace* colorSpace) const { |
| 52 size_t rowBytes[3], | |
| 53 SkYUVColorSpace*) { | |
| 54 return false; | 52 return false; |
| 55 } | 53 } |
| 56 | 54 |
| 55 bool DecodingImageGenerator::onGetYUV8Planes(const SkYUVSizeInfo& sizeInfo, |
| 56 void* planes[3]) { |
| 57 return false; |
| 58 } |
| 59 |
| 57 } // namespace client | 60 } // namespace client |
| 58 } // namespace blimp | 61 } // namespace blimp |
| OLD | NEW |