bsalomon@google.com | d58a1cd | 2011-11-10 20:57:43 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
Matt Sarett | 485c499 | 2017-02-14 14:18:27 -0500 | [diff] [blame] | 8 | #ifndef SkConvertPixels_DEFINED |
| 9 | #define SkConvertPixels_DEFINED |
bsalomon@google.com | d58a1cd | 2011-11-10 20:57:43 +0000 | [diff] [blame] | 10 | |
Kevin Lubick | 406dacd | 2023-03-23 10:15:46 -0400 | [diff] [blame] | 11 | #include <cstddef> |
| 12 | |
| 13 | struct SkImageInfo; |
reed | 95d343f | 2015-05-23 13:21:06 -0700 | [diff] [blame] | 14 | |
John Stiles | 2d0d8c8 | 2023-07-17 09:37:50 -0400 | [diff] [blame] | 15 | [[nodiscard]] bool SkConvertPixels( |
Brian Salomon | c24c8ef | 2021-02-01 13:32:30 -0500 | [diff] [blame] | 16 | const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, |
| 17 | const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes); |
bsalomon@google.com | fb0d741 | 2012-02-22 21:25:34 +0000 | [diff] [blame] | 18 | |
commit-bot@chromium.org | 4cd9e21 | 2014-03-07 03:25:16 +0000 | [diff] [blame] | 19 | #endif |