1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/chromium/src/base/linux_util.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +// Copyright (c) 2009 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#ifndef BASE_LINUX_UTIL_H__ 1.9 +#define BASE_LINUX_UTIL_H__ 1.10 + 1.11 +#include <stdint.h> 1.12 + 1.13 +namespace base { 1.14 + 1.15 +// Makes a copy of |pixels| with the ordering changed from BGRA to RGBA. 1.16 +// The caller is responsible for free()ing the data. If |stride| is 0, 1.17 +// it's assumed to be 4 * |width|. 1.18 +uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride); 1.19 + 1.20 +} // namespace base 1.21 + 1.22 +#endif // BASE_LINUX_UTIL_H__