Lines Matching defs:src
8 #include "src/gpu/SurfaceContext.h"
14 #include "src/core/SkAutoPixmapStorage.h"
15 #include "src/core/SkMipmap.h"
16 #include "src/core/SkYUVMath.h"
17 #include "src/gpu/GrClientMappedBufferManager.h"
18 #include "src/gpu/GrColorSpaceXform.h"
19 #include "src/gpu/GrDataUtils.h"
20 #include "src/gpu/GrDirectContextPriv.h"
21 #include "src/gpu/GrDrawingManager.h"
22 #include "src/gpu/GrGpu.h"
23 #include "src/gpu/GrImageInfo.h"
24 #include "src/gpu/GrProxyProvider.h"
25 #include "src/gpu/GrRecordingContextPriv.h"
26 #include "src/gpu/GrResourceProvider.h"
27 #include "src/gpu/GrTracing.h"
28 #include "src/gpu/SkGr.h"
29 #include "src/gpu/SurfaceFillContext.h"
30 #include "src/gpu/effects/GrBicubicEffect.h"
31 #include "src/gpu/effects/GrTextureEffect.h"
90 // We allow unknown alpha types but only if both src and dst are unknown. Otherwise, it's too
264 GrCPixmap src,
270 src = src.clip(this->dimensions(), &dstPt);
271 if (!src.hasPixels()) {
274 if (!src.info().bpp() || src.rowBytes() % src.info().bpp()) {
277 return this->internalWritePixels(dContext, &src, 1, dstPt);
281 const GrCPixmap src[],
289 SkASSERT(src);
292 if (src->dimensions() != this->dimensions()) {
295 return this->writePixels(dContext, src[0], {0, 0});
306 if (src[i].colorInfo() != src[0].colorInfo()) {
309 if (dims != src[i].dimensions()) {
312 if (!src[i].info().bpp() || src[i].rowBytes() % src[i].info().bpp()) {
317 return this->internalWritePixels(dContext, src, numLevels, {0, 0});
321 const GrCPixmap src[],
327 SkASSERT(src);
330 SkASSERT((src[0].dimensions() == this->dimensions() && pt.isZero()) || numLevels == 1);
335 SkIRect::MakePtSize(pt, src[0].dimensions())));
345 if (src[0].colorType() == GrColorType::kUnknown) {
349 if (!alpha_types_compatible(src[0].alphaType(), this->colorInfo().alphaType())) {
366 SkColorSpaceXformSteps{src[0].colorInfo(), this->colorInfo()}.flags;
380 (src[0].colorType() == GrColorType::kRGBA_8888 ||
381 src[0].colorType() == GrColorType::kBGRA_8888) &&
421 src[0].dimensions(),
438 GrCPixmap origSrcBase = src[0];
454 // Important: check the original src color type here!
478 GrColorType srcColorType = src[0].colorType();
494 if (convertAll || (mustBeTight && src[i].rowBytes() != src[i].info().minRowBytes())) {
495 tmpSize += src[i].info().makeColorType(allowedColorType).minRowBytes()*
496 src[i].height();
506 if (convertAll || (mustBeTight && src[i].rowBytes() != src[i].info().minRowBytes())) {
510 src[i].dimensions());
513 SkAssertResult(GrConvertPixels(tmpPM, src[i], flip));
517 srcLevels[i] = {src[i].addr(), src[i].rowBytes(), src[i].pixelStorage()};
518 ownAllStorage &= src[i].ownsPixels();
521 pt.fY = flip ? dstSurface->height() - pt.fY - src[0].height() : pt.fY;
525 SkIRect::MakePtSize(pt, src[0].dimensions()),
588 // channels are in the src.
1035 sk_sp<GrRenderTask> SurfaceContext::copy(sk_sp<GrSurfaceProxy> src,
1045 SkASSERT(src->backendFormat().textureType() != GrTextureType::kExternal);
1046 SkASSERT(src->backendFormat() == this->asSurfaceProxy()->backendFormat());
1052 if (!caps->canCopySurface(this->asSurfaceProxy(), src.get(), srcRect, dstPoint)) {
1056 return this->drawingManager()->newCopyRenderTask(std::move(src),
1251 // channels are in the src.
1289 void* dst, const void* src) {
1293 GrCPixmap(srcInfo, src, srcInfo.minRowBytes()));