| * Copyright 2015 Google Inc. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #include "include/core/SkTypes.h" |
| * Contains useful mask routines for SkMaskSwizzler |
| * Contains all of the information for a single mask |
| * Create the masks object |
| static SkMasks* CreateMasks(InputMasks masks, int bytesPerPixel); |
| uint8_t getRed(uint32_t pixel) const; |
| uint8_t getGreen(uint32_t pixel) const; |
| uint8_t getBlue(uint32_t pixel) const; |
| uint8_t getAlpha(uint32_t pixel) const; |
| * Getter for the alpha mask |
| * The alpha mask may be used in other decoding modes |
| uint32_t getAlphaMask() const { |
| SkMasks(const MaskInfo& red, const MaskInfo& green, const MaskInfo& blue, |