| 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/common/compositor/blimp_remote_image_deserializer.h" | 5 #include "blimp/common/compositor/blimp_remote_image_deserializer.h" |
| 6 | 6 |
| 7 #include "blimp/common/compositor/webp_decoder.h" |
| 7 #include "third_party/skia/include/core/SkPicture.h" | 8 #include "third_party/skia/include/core/SkPicture.h" |
| 8 | 9 |
| 9 namespace { | |
| 10 bool NoopDecoder(const void* input, size_t input_size, SkBitmap* bitmap) { | |
| 11 // TODO(nyquist): Add an image decoder. | |
| 12 return false; | |
| 13 } | |
| 14 } | |
| 15 | |
| 16 namespace blimp { | 10 namespace blimp { |
| 17 | 11 |
| 18 BlimpRemoteImageDeserializer::BlimpRemoteImageDeserializer() {} | 12 BlimpRemoteImageDeserializer::BlimpRemoteImageDeserializer() {} |
| 19 | 13 |
| 20 BlimpRemoteImageDeserializer::~BlimpRemoteImageDeserializer() {} | 14 BlimpRemoteImageDeserializer::~BlimpRemoteImageDeserializer() {} |
| 21 | 15 |
| 22 SkPicture::InstallPixelRefProc | 16 SkPicture::InstallPixelRefProc |
| 23 BlimpRemoteImageDeserializer::GetPixelDeserializer() { | 17 BlimpRemoteImageDeserializer::GetPixelDeserializer() { |
| 24 return &NoopDecoder; | 18 return &WebPDecoder; |
| 25 } | 19 } |
| 26 | 20 |
| 27 } // namespace blimp | 21 } // namespace blimp |
| OLD | NEW |