Home
last modified time | relevance | path

Searched refs:layerImage (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/
DLayer.cpp103 if (layerImage) { in draw()
111 textureMatrixInv.postScale(layerImage->width(), layerImage->height()); in draw()
131 SkRect imageRect = SkRect::MakeIWH(layerImage->width(), layerImage->height()); in draw()
136 canvas->drawImage(layerImage.get(), 0, 0, sampling, &paint); in draw()
DDeferredLayerUpdater.cpp169 sk_sp<SkImage> layerImage = mImageSlots[slot].createIfNeeded( in apply() local
177 if (layerImage.get()) { in apply()
180 mWidth != layerImage->width() || mHeight != layerImage->height(); in apply()
195 updateLayer(forceFilter, layerImage, outTransform, currentCropRect, in apply()
208 void DeferredLayerUpdater::updateLayer(bool forceFilter, const sk_sp<SkImage>& layerImage, in updateLayer() argument
216 mLayer->setImage(layerImage); in updateLayer()
DLayer.h95 inline void setImage(const sk_sp<SkImage>& image) { this->layerImage = image; } in setImage()
97 inline sk_sp<SkImage> getImage() const { return this->layerImage; } in getImage()
154 sk_sp<SkImage> layerImage; variable
DDeferredLayerUpdater.h94 void updateLayer(bool forceFilter, const sk_sp<SkImage>& layerImage, const uint32_t transform,
/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp120 sk_sp<SkImage> layerImage = layer->getImage(); in DrawLayer() local
124 if (layerImage) { in DrawLayer()
125 const int imageWidth = layerImage->width(); in DrawLayer()
126 const int imageHeight = layerImage->height(); in DrawLayer()
188 tonemapPaint(layerImage->imageInfo(), canvas->imageInfo(), layer->getMaxLuminanceNits(), in DrawLayer()
190 canvas->drawImageRect(layerImage.get(), skiaSrcRect, skiaDestRect, sampling, &paint, in DrawLayer()
200 return layerImage != nullptr; in DrawLayer()
/frameworks/base/libs/hwui/tests/unit/
DDeferredLayerUpdaterTests.cpp43 sk_sp<SkImage> layerImage = SkImages::RasterFromBitmap(bitmap); in RENDERTHREAD_TEST() local
44 layerUpdater->updateLayer(true, layerImage, 0, SkRect::MakeEmpty()); in RENDERTHREAD_TEST()