234 {
235 static constexpr int kSize = 256;
237 uint32_t* srcData =
data.get();
238
239
240
243 uint8_t*
color =
reinterpret_cast<uint8_t*
>(&srcData[
kSize*
y +
x]);
248 }
249 }
250
254
255 auto readSFC =
257 auto tempSFC =
259 if (!readSFC || !tempSFC) {
260 return false;
261 }
262
263
264
265
269
271 if (!dataView) {
272 return false;
273 }
274
279
280 GrPixmap firstReadPM( upmII, firstRead,
kSize*
sizeof(uint32_t));
281 GrPixmap secondReadPM(upmII, secondRead,
kSize*
sizeof(uint32_t));
282
283
284
285
286
289 if (!readSFC->readPixels(dContext, firstReadPM, {0, 0})) {
290 return false;
291 }
292
296
300
301 if (!readSFC->readPixels(dContext, secondReadPM, {0, 0})) {
302 return false;
303 }
304
306 for (
int x = 0;
x <=
y; ++
x) {
308 return false;
309 }
310 }
311 }
312
313 return true;
314}
static std::unique_ptr< GrFragmentProcessor > make_unpremul_effect(std::unique_ptr< GrFragmentProcessor > fp)
static std::unique_ptr< GrFragmentProcessor > make_premul_effect(std::unique_ptr< GrFragmentProcessor > fp)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
std::tuple< GrSurfaceProxyView, GrColorType > GrMakeUncachedBitmapProxyView(GrRecordingContext *rContext, const SkBitmap &bitmap, skgpu::Mipmapped mipmapped, SkBackingFit fit, skgpu::Budgeted budgeted)
GrDirectContextPriv priv()
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > makeSFC(GrImageInfo, std::string_view label, SkBackingFit=SkBackingFit::kExact, int sampleCount=1, skgpu::Mipmapped=skgpu::Mipmapped::kNo, skgpu::Protected=skgpu::Protected::kNo, GrSurfaceOrigin=kTopLeft_GrSurfaceOrigin, skgpu::Budgeted=skgpu::Budgeted::kYes)
static std::unique_ptr< GrFragmentProcessor > Make(GrSurfaceProxyView, SkAlphaType, const SkMatrix &=SkMatrix::I(), GrSamplerState::Filter=GrSamplerState::Filter::kNearest, GrSamplerState::MipmapMode mipmapMode=GrSamplerState::MipmapMode::kNone)
static float min(float r, float g, float b)
const myers::Point & get< 0 >(const myers::Segment &s)
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
std::shared_ptr< const fml::Mapping > data