Home | History | Annotate | Download | only in core

Lines Matching defs:SkBitmap

17 #include "SkBitmap.h"
39 struct SkBitmap::MipMap : SkNoncopyable {
84 SkBitmap::SkBitmap() {
88 SkBitmap::SkBitmap(const SkBitmap& src) {
95 SkBitmap::~SkBitmap() {
100 SkBitmap& SkBitmap::operator=(const SkBitmap& src) {
131 void SkBitmap::swap(SkBitmap& other) {
148 void SkBitmap::reset() {
153 int SkBitmap::ComputeBytesPerPixel(SkBitmap::Config config) {
180 int SkBitmap::ComputeRowBytes(Config c, int width) {
217 Sk64 SkBitmap::ComputeSize64(Config c, int width, int height) {
219 size.setMul(SkBitmap::ComputeRowBytes(c, width), height);
223 size_t SkBitmap::ComputeSize(Config c, int width, int height) {
224 Sk64 size = SkBitmap::ComputeSize64(c, width, height);
228 void SkBitmap::setConfig(Config c, int width, int height, int rowBytes) {
236 rowBytes = SkBitmap::ComputeRowBytes(c, width);
257 void SkBitmap::updatePixelsFromRef() const {
279 SkPixelRef* SkBitmap::setPixelRef(SkPixelRef* pr, size_t offset) {
301 void SkBitmap::lockPixels() const {
309 void SkBitmap::unlockPixels() const {
319 void SkBitmap::setPixels(void* p, SkColorTable* ctable) {
327 bool SkBitmap::allocPixels(Allocator* allocator, SkColorTable* ctable) {
336 void SkBitmap::freePixels() {
357 void SkBitmap::freeMipMap() {
364 uint32_t SkBitmap::getGenerationID() const {
368 void SkBitmap::notifyPixelsChanged() const {
429 bool SkBitmap::HeapAllocator::allocPixelRef(SkBitmap* dst,
449 bool SkBitmap::isOpaque() const {
483 void SkBitmap::setIsOpaque(bool isOpaque) {
494 void* SkBitmap::getAddr(int x, int y) const {
502 case SkBitmap::kARGB_8888_Config:
505 case SkBitmap::kARGB_4444_Config:
506 case SkBitmap::kRGB_565_Config:
509 case SkBitmap::kA8_Config:
510 case SkBitmap::kIndex8_Config:
513 case SkBitmap::kA1_Config:
532 void SkBitmap::eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) const {
614 static size_t getSubOffset(const SkBitmap& bm, int x, int y) {
619 case SkBitmap::kA8_Config:
620 case SkBitmap:: kIndex8_Config:
624 case SkBitmap::kRGB_565_Config:
625 case SkBitmap::kARGB_4444_Config:
629 case SkBitmap::kARGB_8888_Config:
633 case SkBitmap::kNo_Config:
634 case SkBitmap::kA1_Config:
641 bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const {
661 SkBitmap bm;
687 SkBitmap dst;
709 bool SkBitmap::canCopyTo(Config dstConfig) const {
739 bool SkBitmap::copyTo(SkBitmap* dst, Config dstConfig, Allocator* alloc) const {
750 SkBitmap tmp;
805 static void downsampleby2_proc32(SkBitmap* dst, int x, int y,
806 const SkBitmap& src) {
843 static void downsampleby2_proc16(SkBitmap* dst, int x, int y,
844 const SkBitmap& src) {
878 static void downsampleby2_proc4444(SkBitmap* dst, int x, int y,
879 const SkBitmap& src) {
905 void SkBitmap::buildMipMap(bool forceRebuild) {
913 void (*proc)(SkBitmap* dst, int x, int y, const SkBitmap& src);
915 const SkBitmap::Config config = this->getConfig();
960 SkBitmap srcBM(*this);
976 SkBitmap dstBM;
1004 bool SkBitmap::hasMipMap() const {
1008 int SkBitmap::extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy) {
1024 dst->setConfig((SkBitmap::Config)this->config(),
1031 SkFixed SkBitmap::ComputeMipLevel(SkFixed sx, SkFixed sy) {
1047 static bool GetBitmapAlpha(const SkBitmap& src, uint8_t SK_RESTRICT alpha[],
1052 SkBitmap::Config config = src.getConfig();
1067 if (SkBitmap::kA8_Config == config && !src.isOpaque()) {
1074 } else if (SkBitmap::kARGB_8888_Config == config && !src.isOpaque()) {
1083 } else if (SkBitmap::kARGB_4444_Config == config && !src.isOpaque()) {
1092 } else if (SkBitmap::kIndex8_Config == config && !src.isOpaque()) {
1116 void SkBitmap::extractAlpha(SkBitmap* dst, const SkPaint* paint,
1139 dst->setConfig(SkBitmap::kA8_Config, this->width(), this->height(),
1158 dst->setConfig(SkBitmap::kA8_Config, dstM.fBounds.width(),
1204 void SkBitmap::flatten(SkFlattenableWriteBuffer& buffer) const {
1258 void SkBitmap::unflatten(SkFlattenableReadBuffer& buffer) {
1311 SkBitmap::RLEPixels::RLEPixels(int width, int height) {
1317 SkBitmap::RLEPixels::~RLEPixels() {
1324 void SkBitmap::validate() const {